summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/lib/quagga.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/scenario_test/lib/quagga.py')
-rw-r--r--test/scenario_test/lib/quagga.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/scenario_test/lib/quagga.py b/test/scenario_test/lib/quagga.py
index 75c2f61c..5141ff7d 100644
--- a/test/scenario_test/lib/quagga.py
+++ b/test/scenario_test/lib/quagga.py
@@ -68,9 +68,15 @@ class QuaggaBGPContainer(BGPContainer):
tn.read_until(' Network Next Hop Metric '
'LocPrf Weight Path')
for line in tn.read_until('bgpd#').split('\n'):
- if line[0] == '*':
+ if line[:2] == '*>':
+ line = line[2:]
+ ibgp = False
+ if line[0] == 'i':
+ line = line[1:]
+ ibgp = True
elems = line.split()
- rib.append({'prefix': elems[1], 'nexthop': elems[2]})
+ rib.append({'prefix': elems[0], 'nexthop': elems[1],
+ 'ibgp': ibgp})
return rib
@@ -181,7 +187,7 @@ class QuaggaBGPContainer(BGPContainer):
c << 'debug bgp fsm'
c << 'debug bgp updates'
c << 'debug bgp events'
- c << 'log file {0}/bgpd.log'.format(self.SHARED_VOLUME)
+ c << 'log file /tmp/bgpd.log'.format(self.SHARED_VOLUME)
with open('{0}/bgpd.conf'.format(self.config_dir), 'w') as f:
print colors.yellow('[{0}\'s new config]'.format(self.name))