diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-13 21:36:31 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-11-13 22:19:32 +0100 |
commit | dd13213ae94f071bc30cc17f5fabef02fbf95939 (patch) | |
tree | a67a9cab6456b9ced10c3fe84327913e10cc9b41 /src | |
parent | bc83fb097719f5c4c803808572f690fbc367b9e5 (diff) | |
download | vyos-1x-dd13213ae94f071bc30cc17f5fabef02fbf95939.tar.gz vyos-1x-dd13213ae94f071bc30cc17f5fabef02fbf95939.zip |
pim: T5733: fix CLI level of global PIM commands
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/protocols_pim.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/protocols_pim.py b/src/conf_mode/protocols_pim.py index fbe95c404..5e6225f6f 100755 --- a/src/conf_mode/protocols_pim.py +++ b/src/conf_mode/protocols_pim.py @@ -25,6 +25,7 @@ from vyos.config import config_dict_merge from vyos.configdict import dict_merge from vyos.configdict import node_changed from vyos.utils.dict import dict_search +from vyos.configverify import verify_interface_exists from vyos.utils.process import process_named_running from vyos.utils.process import call from vyos.template import render_to_string @@ -93,6 +94,9 @@ def verify(pim): if 'interface' not in pim: raise ConfigError('PIM require defined interfaces!') + for interface in pim['interface']: + verify_interface_exists(interface) + if 'rp' in pim: if 'address' not in pim['rp']: raise ConfigError('PIM rendezvous point needs to be defined!') |