summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-08-04 20:56:08 +0200
committerChristian Poessinger <christian@poessinger.com>2022-08-04 20:56:08 +0200
commitde04107fbd015ee17b8899aefe2b86b9cb6efd83 (patch)
tree9e944ac223831789a31fcb2969c8cd82c8505fe3 /src/conf_mode
parent0943ac00412b0049b7a20a54e27e7b8025726598 (diff)
parent967c53e2f3e4a7ae36577ba28dd60046909224dc (diff)
downloadvyos-1x-de04107fbd015ee17b8899aefe2b86b9cb6efd83.tar.gz
vyos-1x-de04107fbd015ee17b8899aefe2b86b9cb6efd83.zip
Merge https://github.com/Cheeze-It/vyos-1x into current
* https://github.com/Cheeze-It/vyos-1x: bgp: T4257: Changing BGP "local-as" to "system-as"
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/protocols_bgp.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conf_mode/protocols_bgp.py b/src/conf_mode/protocols_bgp.py
index 7d3687094..0f8f1af42 100755
--- a/src/conf_mode/protocols_bgp.py
+++ b/src/conf_mode/protocols_bgp.py
@@ -121,8 +121,8 @@ def verify(bgp):
'dependent VRF instance(s) exist!')
return None
- if 'local_as' not in bgp:
- raise ConfigError('BGP local-as number must be defined!')
+ if 'system_as' not in bgp:
+ raise ConfigError('BGP system-as number must be defined!')
# Common verification for both peer-group and neighbor statements
for neighbor in ['neighbor', 'peer_group']:
@@ -147,8 +147,8 @@ def verify(bgp):
# Neighbor local-as override can not be the same as the local-as
# we use for this BGP instane!
asn = list(peer_config['local_as'].keys())[0]
- if asn == bgp['local_as']:
- raise ConfigError('Cannot have local-as same as BGP AS number')
+ if asn == bgp['system_as']:
+ raise ConfigError('Cannot have local-as same as system-as number')
# Neighbor AS specified for local-as and remote-as can not be the same
if dict_search('remote_as', peer_config) == asn: