summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_isis.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-21 18:27:36 +0100
committerChristian Poessinger <christian@poessinger.com>2021-03-21 19:09:58 +0100
commit19b16986515dcb58955e153025b24dc012faa574 (patch)
tree3ad3ca138dcef0ecab5d48a338afe9805176e290 /src/conf_mode/protocols_isis.py
parentd89455ee7f5dc21d00bbeddd57eaee2e32f45f99 (diff)
downloadvyos-1x-19b16986515dcb58955e153025b24dc012faa574.tar.gz
vyos-1x-19b16986515dcb58955e153025b24dc012faa574.zip
isis: T3417: last byte of IS-IS network entity title must always be 0
Diffstat (limited to 'src/conf_mode/protocols_isis.py')
-rwxr-xr-xsrc/conf_mode/protocols_isis.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/conf_mode/protocols_isis.py b/src/conf_mode/protocols_isis.py
index 530f55ce4..adce00ee3 100755
--- a/src/conf_mode/protocols_isis.py
+++ b/src/conf_mode/protocols_isis.py
@@ -89,6 +89,11 @@ def verify(isis):
if 'net' not in isis:
raise ConfigError('Network entity is mandatory!')
+ # last byte in IS-IS area address must be 0
+ tmp = isis['net'].split('.')
+ if int(tmp[-1]) != 0:
+ raise ConfigError('Last byte of IS-IS network entity title must always be 0!')
+
# If interface not set
if 'interface' not in isis:
raise ConfigError('Interface used for routing updates is mandatory!')