summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-13 21:36:31 +0100
committerChristian Breunig <christian@breunig.cc>2023-11-15 20:23:49 +0100
commitce21078a983552db3f36ee95ca6bc55dd15fa170 (patch)
tree24c380311a0cb3aadb3a5afeba6aa856915188eb /src/conf_mode
parent383231dae8c01ea58d0c956688ecd87f739be97e (diff)
downloadvyos-1x-ce21078a983552db3f36ee95ca6bc55dd15fa170.tar.gz
vyos-1x-ce21078a983552db3f36ee95ca6bc55dd15fa170.zip
pim: T5733: fix CLI level of global PIM commands
(cherry picked from commit dd13213ae94f071bc30cc17f5fabef02fbf95939)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/protocols_pim.py4
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!')