summaryrefslogtreecommitdiff
path: root/src/conf-mode/vyos-config-mdns-repeater.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf-mode/vyos-config-mdns-repeater.py')
-rwxr-xr-xsrc/conf-mode/vyos-config-mdns-repeater.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/conf-mode/vyos-config-mdns-repeater.py b/src/conf-mode/vyos-config-mdns-repeater.py
index 04a17c126..e648fd64f 100755
--- a/src/conf-mode/vyos-config-mdns-repeater.py
+++ b/src/conf-mode/vyos-config-mdns-repeater.py
@@ -22,7 +22,7 @@ import netifaces
import time
from vyos.config import Config
-from vyos.util import ConfigError
+from vyos import ConfigError
config_file = r'/etc/default/mdns-repeater'
@@ -35,9 +35,8 @@ def get_config():
return interface_list
if conf.exists('interface'):
+ intfs_names = []
intfs_names = conf.return_values('interface')
- intfs_names=intfs_names.replace("'", "")
- intfs_names=intfs_names.split()
for name in intfs_names:
interface_list.append(name)