Changeset 328e93f for fedkit/federate.pl


Ignore:
Timestamp:
Feb 1, 2013 1:25:43 PM (11 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
17c6d91
Parents:
9a52a80 (diff), 06a2b49 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of tardis.deterlab.net:/var/local/git/fedd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/federate.pl

    r06a2b49 r328e93f  
    8888
    8989    foreach my $fn ("seer.conf", "client.conf", "userconf", "hosts",
    90             "ca.pem", "node.pem") {
     90            "ca.pem", "node.pem", "route.tgz") {
    9191        copy("$shared_config_dir/$fn", $local_config_dir )
    9292            if -e "$shared_config_dir/$fn";
    9393    }
     94    # If there are static routes, unpack them
     95    system("tar -C $local_config_dir -xzf $local_config_dir/route.tgz")
     96        if -e "$local_config_dir/route.tgz";
    9497
    9598    # Copy seer authorization files into the location that standard SEER
     
    169172
    170173if ($uname =~ /Linux/ ) {
    171     system("$perl /usr/local/federation/bin/gated_routing.pl")
    172         if -r "/usr/local/federation/bin/gated_routing.pl";
     174    system("$perl /usr/local/federation/bin/static_routing.pl")
     175        if -r "/usr/local/federation/bin/static_routing.pl";
     176    if ($?) {
     177        system("$perl /usr/local/federation/bin/gated_routing.pl")
     178            if -r "/usr/local/federation/bin/gated_routing.pl";
     179        }
    173180    if ($?) {
    174181        system("$perl /usr/local/federation/bin/quagga_routing.pl")
     
    177184}
    178185elsif ($uname =~/FreeBSD/ ) {
    179     # FreeBSD needs to have ospfs installed and a router config created and
    180     # run.
    181     system("$perl /usr/local/federation/bin/ospf_routing.pl")
    182         if -r "/usr/local/federation/bin/ospf_routing.pl";
     186    system("$perl /usr/local/federation/bin/static_routing.pl")
     187        if -r "/usr/local/federation/bin/static_routing.pl";
     188    if ($?) {
     189        # FreeBSD needs to have ospfs installed and a router config created and
     190        # run.
     191        system("$perl /usr/local/federation/bin/ospf_routing.pl")
     192            if -r "/usr/local/federation/bin/ospf_routing.pl";
     193    }
    183194}
    184195
Note: See TracChangeset for help on using the changeset viewer.