| 229 | |
| 230 | |
| 231 | ifconfig sorted out for simplist case: hostname --> ipaddress. Used 3rd party host file manager cookbook. To integrate was easy: git clone the cookbook, cp -r it into our chef-repo, add dependency in cookbook/deter_node/metadata.rb. |
| 232 | |
| 233 | Working now on routing. First pass is not straight-forward: tmcd just returns {{{ROUTERTYPE=static}}} for {{{tmcc routing}}}. Looking through the tmcd.c code is no help. I need to find where routes are set. |
| 234 | * found rc.route on testnodes. |
| 235 | * rc.route --> getrouterconfig --> libsetup.pm --> seems to assume that it gets something back from {{{tmcd routing}}} |
| 236 | * checked on more complicated experiment and {{{tmcc routing}}} still just gives {{{ROUTERTYPE=static}}}. |
| 237 | * Need to find this "new" routing technique. Code comment says to return static at vers > 19. |
| 238 | * Looks like static --> triggers {{{calcroutes}}} which uses the {{{linkmap}}} file. |
| 239 | * Can we assume it'll be there? If we mount the /proj file it should be... So write our own {{{calcroutes}}} as a (ruby) recipe? Looking into it. |
| 240 | * Looks like rc.routes calls into libsetup to get route info then writes a new rc.routes in /var/emulab/boot that itself sets the routes based on the command line args. What calls this? Who knows. |
| 241 | * So two ways this could go: follow existing arcane routing method or use the "old" routing information that emulab puts in the database somewhere (this would entail finding out where/how the {{{linkmap}}} file is generated. It must come from the database somehow, right?) |
| 242 | |