mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
test/lib/gobgp,quagga: Adopt to Debian 9 based osrg/quagga:v1.0
Signed-off-by: IWASE Yusuke <[email protected]>
This commit is contained in:
committed by
FUJITA Tomonori
parent
8dd72278af
commit
ea2067ac1c
+2
-2
@@ -104,7 +104,7 @@ class GoBGPContainer(BGPContainer):
|
||||
if self.zapi_version == 2:
|
||||
daemon_bin = '/usr/lib/quagga/zebra'
|
||||
else:
|
||||
daemon_bin = 'zebra -u root -g root'
|
||||
daemon_bin = 'zebra'
|
||||
cmd = '{0} -f {1}/zebra.conf'.format(daemon_bin, self.QUAGGA_VOLUME)
|
||||
self.local(cmd, detach=True)
|
||||
|
||||
@@ -112,7 +112,7 @@ class GoBGPContainer(BGPContainer):
|
||||
if self.zapi_version == 2:
|
||||
daemon_bin = '/usr/lib/quagga/ospfd'
|
||||
else:
|
||||
daemon_bin = 'ospfd -u root -g root'
|
||||
daemon_bin = 'ospfd'
|
||||
cmd = '{0} -f {1}/ospfd.conf'.format(daemon_bin, self.QUAGGA_VOLUME)
|
||||
self.local(cmd, detach=True)
|
||||
|
||||
|
||||
+3
-9
@@ -375,20 +375,14 @@ class QuaggaOSPFContainer(OSPFContainer):
|
||||
f.writelines(str(c))
|
||||
|
||||
def _start_zebra(self):
|
||||
if self.zapi_vserion == 2:
|
||||
# Do nothing. supervisord will automatically start Zebra daemon.
|
||||
return
|
||||
|
||||
self.local(
|
||||
'/usr/local/sbin/zebra '
|
||||
'-u root -g root -f {0}/zebra.conf'.format(self.SHARED_VOLUME),
|
||||
detach=True)
|
||||
# Do nothing. supervisord will automatically start Zebra daemon.
|
||||
return
|
||||
|
||||
def _start_ospfd(self):
|
||||
if self.zapi_vserion == 2:
|
||||
ospfd_cmd = '/usr/lib/quagga/ospfd'
|
||||
else:
|
||||
ospfd_cmd = '/usr/local/sbin/ospfd -u root -g root'
|
||||
ospfd_cmd = 'ospfd'
|
||||
self.local(
|
||||
'{0} -f {1}/ospfd.conf'.format(ospfd_cmd, self.SHARED_VOLUME),
|
||||
detach=True)
|
||||
|
||||
Reference in New Issue
Block a user