summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_isis.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-24 20:50:03 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-24 20:50:03 +0200
commit714de9764012409921736787e664b030a33907b9 (patch)
tree6e4c5836764434c8b1616acbdcf479cf78895e08 /src/conf_mode/protocols_isis.py
parente60d65e02f94deb9741bdd3d7f6621a79bf81fcf (diff)
downloadvyos-1x-714de9764012409921736787e664b030a33907b9.tar.gz
vyos-1x-714de9764012409921736787e664b030a33907b9.zip
isis: T3417: implement domain-password md5
Diffstat (limited to 'src/conf_mode/protocols_isis.py')
-rwxr-xr-xsrc/conf_mode/protocols_isis.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/conf_mode/protocols_isis.py b/src/conf_mode/protocols_isis.py
index ef21e0055..c3a444f16 100755
--- a/src/conf_mode/protocols_isis.py
+++ b/src/conf_mode/protocols_isis.py
@@ -128,9 +128,11 @@ def verify(isis):
raise ConfigError(f'Interface {interface} is not a member of VRF {vrf}!')
# If md5 and plaintext-password set at the same time
- if 'area_password' in isis:
- if {'md5', 'plaintext_password'} <= set(isis['encryption']):
- raise ConfigError('Can not use both md5 and plaintext-password for ISIS area-password!')
+ for password in ['area_password', 'domain_password']:
+ if password in isis:
+ if {'md5', 'plaintext_password'} <= set(isis[password]):
+ tmp = password.replace('_', '-')
+ raise ConfigError(f'Can use either md5 or plaintext-password for {tmp}!')
# If one param from delay set, but not set others
if 'spf_delay_ietf' in isis: