diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-03-24 18:20:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-24 18:20:53 +0100 |
commit | 3a85acc5fa900cabe502529ad57c7fed619c1149 (patch) | |
tree | 915bdb1aca4015719f9271469afce13b53d4faad /src/conf_mode/protocols_bgp.py | |
parent | 999b1e50dfdea8694174e82d22b2438cb1bf5e28 (diff) | |
parent | a7a7e38049d4601d55dd032b7d3aecf96c7e8781 (diff) | |
download | vyos-1x-3a85acc5fa900cabe502529ad57c7fed619c1149.tar.gz vyos-1x-3a85acc5fa900cabe502529ad57c7fed619c1149.zip |
Merge pull request #1248 from sever-sever/T4290
bgp: T4290: Add verify source-interface for none ip neighbor
Diffstat (limited to 'src/conf_mode/protocols_bgp.py')
-rwxr-xr-x | src/conf_mode/protocols_bgp.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/protocols_bgp.py b/src/conf_mode/protocols_bgp.py index d8704727c..9e59177a8 100755 --- a/src/conf_mode/protocols_bgp.py +++ b/src/conf_mode/protocols_bgp.py @@ -166,6 +166,8 @@ def verify(bgp): raise ConfigError(f'peer-group must be set under the interface node of "{peer}"') if 'remote_as' in peer_config: raise ConfigError(f'remote-as must be set under the interface node of "{peer}"') + if 'source_interface' in peer_config['interface']: + raise ConfigError(f'"source-interface" option not allowed for neighbor "{peer}"') for afi in ['ipv4_unicast', 'ipv4_multicast', 'ipv4_labeled_unicast', 'ipv4_flowspec', 'ipv6_unicast', 'ipv6_multicast', 'ipv6_labeled_unicast', 'ipv6_flowspec', |