diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-03-21 18:27:36 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-18 20:32:47 +0200 |
commit | c61f7557a6b595c5d8db7e6c303f275a3c0ab038 (patch) | |
tree | 2cede16c285316e426937b66a628c79a2ccea870 | |
parent | 6d0c73c420293dc19d59b021088748ae9ec9eecc (diff) | |
download | vyos-1x-c61f7557a6b595c5d8db7e6c303f275a3c0ab038.tar.gz vyos-1x-c61f7557a6b595c5d8db7e6c303f275a3c0ab038.zip |
isis: T3417: last byte of IS-IS network entity title must always be 0
(cherry picked from commit 19b16986515dcb58955e153025b24dc012faa574)
-rwxr-xr-x | src/conf_mode/protocols_isis.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/conf_mode/protocols_isis.py b/src/conf_mode/protocols_isis.py index da91f3b11..eab580083 100755 --- a/src/conf_mode/protocols_isis.py +++ b/src/conf_mode/protocols_isis.py @@ -55,6 +55,11 @@ def verify(isis): if 'net' not in isis_config: raise ConfigError('ISIS net format iso is mandatory!') + # last byte in IS-IS area address must be 0 + tmp = isis_config['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_config: raise ConfigError('ISIS interface is mandatory!') |