diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-09-03 20:44:42 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-09-03 20:44:42 +0200 |
commit | 5f1c1ae4770fe36b5290f34d2f3a248c6b1a0ddb (patch) | |
tree | d468b57f4eb32ebdec321319b8a5e3dbed209146 /src/conf_mode | |
parent | 6ad00236d7eae942c480825384fdd8a032944da8 (diff) | |
download | vyos-1x-5f1c1ae4770fe36b5290f34d2f3a248c6b1a0ddb.tar.gz vyos-1x-5f1c1ae4770fe36b5290f34d2f3a248c6b1a0ddb.zip |
bgp: T3798: add support for neighbor local-as <n> replace-as
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/protocols_bgp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/protocols_bgp.py b/src/conf_mode/protocols_bgp.py index 7d05eed9f..e24fcef14 100755 --- a/src/conf_mode/protocols_bgp.py +++ b/src/conf_mode/protocols_bgp.py @@ -130,7 +130,7 @@ def verify(bgp): if 'local_as' in peer_config: if len(peer_config['local_as']) > 1: - raise ConfigError('Only one local-as number may be specified!') + raise ConfigError(f'Only one local-as number can be specified for peer "{peer}"!') # Neighbor local-as override can not be the same as the local-as # we use for this BGP instane! |