summaryrefslogtreecommitdiffhomepage
path: root/test/lib/quagga.py
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-01-22 11:41:34 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-02-10 23:42:01 -0800
commitaa3cedc03a1595a3941de408d1f2c5ed6b0830ac (patch)
tree95c8803a0667adebca0a3cdd14897e4bd275a1b0 /test/lib/quagga.py
parent023a498e4a90982095c870c5491770bf4952fc2b (diff)
test: add graceful restart test
Diffstat (limited to 'test/lib/quagga.py')
-rw-r--r--test/lib/quagga.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lib/quagga.py b/test/lib/quagga.py
index 30f036f0..81c8f666 100644
--- a/test/lib/quagga.py
+++ b/test/lib/quagga.py
@@ -178,6 +178,8 @@ class QuaggaBGPContainer(BGPContainer):
c << 'password zebra'
c << 'router bgp {0}'.format(self.asn)
c << 'bgp router-id {0}'.format(self.router_id)
+ if any(info['graceful_restart'] for info in self.peers.itervalues()):
+ c << 'bgp graceful-restart'
version = 4
for peer, info in self.peers.iteritems():