Changeset b3125fa1 for fedd


Ignore:
Timestamp:
Feb 7, 2014 4:29:20 PM (10 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
ae714e4
Parents:
5f5ce09
Message:

Read external nets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/desktop_access.py

    r5f5ce09 rb3125fa1  
    398398                    my_addr
    399399            # self.set_route('10.0.0.0/8', f, exp_peer)
    400             print >>f, '/usr/local/sbin/zebra -d -i /var/run/zebra.pid -f %s' % zebra_conf
    401             print >>f, '/usr/local/sbin/ospfd -d -i /var/run/ospfd.pid -f %s' % ospfd_conf
     400            print >>f, '/usr/local/sbin/zebra -d -f %s' % zebra_conf
     401            print >>f, '/usr/local/sbin/ospfd -d -f %s' % ospfd_conf
    402402            f.close()
    403403            os.chmod(cscript, 0755)
     
    408408            #self.unset_route('10.0.0.0/8', f)
    409409            print >>f, 'mv /etc/hosts.DETER.fedd.hold /etc/hosts'
    410             print >>f, 'kill `cat /var/run/ospfd.pid`'
    411             print >>f, 'kill `cat /var/run/zebra.pid`'
     410            print >>f, 'kill `cat /var/run/quagga/ospfd.pid`'
     411            print >>f, 'kill `cat /var/run/quagga/zebra.pid`'
    412412            f.close()
    413413            os.chmod(dscript, 0755)
     
    415415            print >>f, 'hostname %s' % my_name
    416416            print >>f, 'interface tap0'
     417            try:
     418                extern = open(os.path.join(self.localdir,
     419                    'external_networks'), 'r')
     420                if extern is not None:
     421                    for l in extern:
     422                        print >>f, "%s" % l.strip()
     423                    extern.close()
     424            except EnvironmentError:
     425                # No external_networks or problem reading it, ignore
     426                pass
    417427            f.close()
    418428            os.chmod(zebra_conf, 0644)
Note: See TracChangeset for help on using the changeset viewer.