diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-07-01 11:27:11 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-07-01 11:27:11 +0200 |
commit | 4cd30acbef4cedd19d94a5acd681e5a084787f07 (patch) | |
tree | 5c64b83b4c207d59dd35fff22a7a2717efa265aa /src/conf_mode/protocols_bgp.py | |
parent | 196aaf47a71b5069b4e6542736ec76221ee2e4e1 (diff) | |
parent | 6cffe2aa820461f7e1dd4c99ee070a7184ff36e8 (diff) | |
download | vyos-1x-4cd30acbef4cedd19d94a5acd681e5a084787f07.tar.gz vyos-1x-4cd30acbef4cedd19d94a5acd681e5a084787f07.zip |
Merge branch 'T4490' of https://github.com/sever-sever/vyos-1x into current
* 'T4490' of https://github.com/sever-sever/vyos-1x:
bgp: T4490: Add informational message for peer withour AFI
Diffstat (limited to 'src/conf_mode/protocols_bgp.py')
-rwxr-xr-x | src/conf_mode/protocols_bgp.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/protocols_bgp.py b/src/conf_mode/protocols_bgp.py index cd46cbcb4..aa77850a9 100755 --- a/src/conf_mode/protocols_bgp.py +++ b/src/conf_mode/protocols_bgp.py @@ -198,6 +198,9 @@ def verify(bgp): if 'source_interface' in peer_config['interface']: raise ConfigError(f'"source-interface" option not allowed for neighbor "{peer}"') + if 'address_family' not in peer_config: + print(f'Neighbor "{peer}" requires address-family!') + for afi in ['ipv4_unicast', 'ipv4_multicast', 'ipv4_labeled_unicast', 'ipv4_flowspec', 'ipv6_unicast', 'ipv6_multicast', 'ipv6_labeled_unicast', 'ipv6_flowspec', 'l2vpn_evpn']: |