Changeset 9a52a80 for fedkit


Ignore:
Timestamp:
Feb 1, 2013 1:25:11 PM (11 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
328e93f
Parents:
5bd8f1b
Message:

Static routing

Location:
fedkit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fedkit/Makefile

    r5bd8f1b r9a52a80  
    33         config_from_tunnelip.pl active_config.pl combo.pl \
    44         prep_gateway.pl port_forward.pl setup_bridge.pl import_key.pl \
    5          gated_routing.pl start_seer.pl ospf_routing.pl quagga_routing.pl
     5         gated_routing.pl start_seer.pl ospf_routing.pl quagga_routing.pl \
     6         static_routing.pl
    67
    78LIBRARIES=gateway_lib.pm
  • fedkit/federate.pl

    r5bd8f1b r9a52a80  
    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.