Changeset f1f9aec for fedd


Ignore:
Timestamp:
Feb 21, 2014 10:23:46 AM (5 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
0608d96
Parents:
972993c
Message:

Make quagga paths configurable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/desktop_access.py

    r972993c rf1f9aec  
    6868        # File containing the routing entries for external networks
    6969        self.external_networks = config.get('access', 'external_networks')
     70        # values for locations of zebra and ospfd.
     71        self.zebra = config.get('access', 'zebra')
     72        if self.zebra is None:
     73            self.zebra = '/usr/local/sbin/zebra'
     74        self.ospfd = config.get('access', 'ospfd')
     75        if self.ospfd is None:
     76            self.ospfd = '/usr/local/sbin/ospfd'
     77
    7078        self.ssh_identity = None
    7179
     
    400408                    my_addr
    401409            # self.set_route('10.0.0.0/8', f, exp_peer)
    402             print >>f, '/usr/local/sbin/zebra -d -f %s' % zebra_conf
    403             print >>f, '/usr/local/sbin/ospfd -d -f %s' % ospfd_conf
     410            print >>f, '%s -d -f %s' % (self.zebra, zebra_conf)
     411            print >>f, '%s -d -f %s' % (self.ospfd, ospfd_conf)
    404412            f.close()
    405413            os.chmod(cscript, 0755)
Note: See TracChangeset for help on using the changeset viewer.