Changeset b3125fa1 for fedd/federation
- Timestamp:
- Feb 7, 2014 4:29:20 PM (11 years ago)
- Branches:
- master
- Children:
- ae714e4
- Parents:
- 5f5ce09
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/desktop_access.py
r5f5ce09 rb3125fa1 398 398 my_addr 399 399 # 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_conf401 print >>f, '/usr/local/sbin/ospfd -d - i /var/run/ospfd.pid -f %s' % ospfd_conf400 print >>f, '/usr/local/sbin/zebra -d -f %s' % zebra_conf 401 print >>f, '/usr/local/sbin/ospfd -d -f %s' % ospfd_conf 402 402 f.close() 403 403 os.chmod(cscript, 0755) … … 408 408 #self.unset_route('10.0.0.0/8', f) 409 409 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`' 412 412 f.close() 413 413 os.chmod(dscript, 0755) … … 415 415 print >>f, 'hostname %s' % my_name 416 416 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 417 427 f.close() 418 428 os.chmod(zebra_conf, 0644)
Note: See TracChangeset
for help on using the changeset viewer.