summaryrefslogtreecommitdiffhomepage
path: root/test/lib/quagga.py
diff options
context:
space:
mode:
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():