summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-01-12 17:58:44 +0100
committerGitHub <noreply@github.com>2023-01-12 17:58:44 +0100
commit640856694b547ce172874a6f90046588009f11a9 (patch)
tree77e006d21392e999861754668c31ea496fa80950 /src/conf_mode
parent68a036238522a210dc5c12fabd4ca833ab43d4bf (diff)
parent1fc7e30fe43a87b95f2802fbd60985ece7dc01f3 (diff)
downloadvyos-1x-640856694b547ce172874a6f90046588009f11a9.tar.gz
vyos-1x-640856694b547ce172874a6f90046588009f11a9.zip
Merge pull request #1755 from vfreex/ospfv3-conflict-options
T4935: ospfv3: "not-advertise" and "advertise" conflict
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/protocols_ospfv3.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/protocols_ospfv3.py b/src/conf_mode/protocols_ospfv3.py
index ee4eaf59d..7cc36b58c 100755
--- a/src/conf_mode/protocols_ospfv3.py
+++ b/src/conf_mode/protocols_ospfv3.py
@@ -117,6 +117,9 @@ def verify(ospfv3):
if 'area_type' in area_config:
if len(area_config['area_type']) > 1:
raise ConfigError(f'Can only configure one area-type for OSPFv3 area "{area}"!')
+ for range, range_config in area_config['range'].items():
+ if {'not_advertise', 'advertise'} <= range_config.keys():
+ raise ConfigError(f'"not-advertise" and "advertise" for "range {range}" cannot be both configured at the same time!')
if 'interface' in ospfv3:
for interface, interface_config in ospfv3['interface'].items():