summaryrefslogtreecommitdiff
path: root/src/conf_mode/netns.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-24 10:17:20 +0100
committerChristian Breunig <christian@breunig.cc>2023-12-24 13:13:27 +0100
commit5e7a8288d06a6d6beee5e1abd2e06698ab778650 (patch)
treed748b757485782baab33f06131f88c43e01d2222 /src/conf_mode/netns.py
parent89cd75b8dbe5cc145a4423bf10faa76fd6bdcdbf (diff)
downloadvyos-1x-5e7a8288d06a6d6beee5e1abd2e06698ab778650.tar.gz
vyos-1x-5e7a8288d06a6d6beee5e1abd2e06698ab778650.zip
T5837: cleanup use of calls to vyos.configdict.node_changed()
node_changed() will return a list of changed keys under "path". We are not always interested what changed, sometimes we are only interested if something changed at all, that what vyos.configdict.is_node_changed() is for.
Diffstat (limited to 'src/conf_mode/netns.py')
-rwxr-xr-xsrc/conf_mode/netns.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/conf_mode/netns.py b/src/conf_mode/netns.py
index 95ab83dbc..7cee33bc6 100755
--- a/src/conf_mode/netns.py
+++ b/src/conf_mode/netns.py
@@ -77,8 +77,8 @@ def verify(netns):
if 'netns_remove' in netns:
for name, config in netns['netns_remove'].items():
if 'interface' in config:
- raise ConfigError(f'Can not remove NETNS "{name}", it still has '\
- f'member interfaces!')
+ raise ConfigError(f'Can not remove network namespace "{name}", it '\
+ f'still has member interfaces!')
if 'name' in netns:
for name, config in netns['name'].items():
@@ -87,7 +87,6 @@ def verify(netns):
return None
-
def generate(netns):
if not netns:
return None