summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-30 22:34:42 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-30 22:51:50 +0200
commit4a2c752303da9af69eaf1d4b95da8cfed797cfbd (patch)
treebbba79b2442a8b75dba163c18ce5809c5deed62d /src/conf_mode
parentd11a18f820b84a7d4af6ee0eccbfc0a2351a6f4e (diff)
downloadvyos-1x-4a2c752303da9af69eaf1d4b95da8cfed797cfbd.tar.gz
vyos-1x-4a2c752303da9af69eaf1d4b95da8cfed797cfbd.zip
bgp: T3504: add support for per-peer graceful shutdown
This commit has a dependecy on https://github.com/FRRouting/frr/issues/8403, thus support will be "commented out" by default.
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/protocols_bgp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/protocols_bgp.py b/src/conf_mode/protocols_bgp.py
index a8c8ff2a2..aca1dbe46 100755
--- a/src/conf_mode/protocols_bgp.py
+++ b/src/conf_mode/protocols_bgp.py
@@ -161,7 +161,7 @@ def verify(bgp):
# Check if neighbor has both ipv4 unicast and ipv4 labeled unicast configured at the same time.
if 'ipv4_unicast' in peer_config['address_family'] and 'ipv4_labeled_unicast' in peer_config['address_family']:
raise ConfigError(f'Neighbor "{peer}" cannot have both ipv4-unicast and ipv4-labeled-unicast configured at the same time!')
-
+
# Check if neighbor has both ipv6 unicast and ipv6 labeled unicast configured at the same time.
if 'ipv6_unicast' in peer_config['address_family'] and 'ipv6_labeled_unicast' in peer_config['address_family']:
raise ConfigError(f'Neighbor "{peer}" cannot have both ipv6-unicast and ipv6-labeled-unicast configured at the same time!')
@@ -214,7 +214,7 @@ def verify(bgp):
if dict_search(f'parameters.distance.global.{key}', bgp) == None:
raise ConfigError('Missing mandatory configuration option for '\
f'global administrative distance {key}!')
-
+
# Throw an error if the address family specific administrative distance parameters aren't all filled out.
if dict_search('address_family', bgp) == None:
pass