summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2017-12-10 12:47:20 +0100
committerChristian Poessinger <christian@poessinger.com>2017-12-10 12:47:20 +0100
commit8826edfcbb60bc4372978b4a11d2300b07d5ac1c (patch)
tree5ded5444687f4bca851d231bfb4046525a04aa3b
parent0435a069d4d71cd9129ab36753f2a2885f33ef26 (diff)
downloadvyos-1x-8826edfcbb60bc4372978b4a11d2300b07d5ac1c.tar.gz
vyos-1x-8826edfcbb60bc4372978b4a11d2300b07d5ac1c.zip
mdns-repeater: use consistent naming of 'interface' node
-rw-r--r--interface-definitions/mdns-repeater.xml2
-rwxr-xr-xsrc/conf-mode/vyos-config-mdns-repeater.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/interface-definitions/mdns-repeater.xml b/interface-definitions/mdns-repeater.xml
index 871eb4925..e4898856b 100644
--- a/interface-definitions/mdns-repeater.xml
+++ b/interface-definitions/mdns-repeater.xml
@@ -16,7 +16,7 @@
<priority>990</priority>
</properties>
<children>
- <leafNode name="interfaces">
+ <leafNode name="interface">
<properties>
<help>Interface to repeat mdns advertisements to [REQUIRED]</help>
<completionHelp>
diff --git a/src/conf-mode/vyos-config-mdns-repeater.py b/src/conf-mode/vyos-config-mdns-repeater.py
index 0d04f7881..85e3bb42c 100755
--- a/src/conf-mode/vyos-config-mdns-repeater.py
+++ b/src/conf-mode/vyos-config-mdns-repeater.py
@@ -35,8 +35,8 @@ def get_config():
if not conf.exists(''):
return interface_list
- if conf.exists('interfaces'):
- intfs_names = conf.return_values('interfaces')
+ if conf.exists('interface'):
+ intfs_names = conf.return_values('interface')
intfs_names=intfs_names.replace("'", "")
intfs_names=intfs_names.split()