From 19b16986515dcb58955e153025b24dc012faa574 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 21 Mar 2021 18:27:36 +0100 Subject: isis: T3417: last byte of IS-IS network entity title must always be 0 --- src/conf_mode/protocols_isis.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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!') -- cgit v1.2.3