summaryrefslogtreecommitdiff
path: root/src/conf_mode/service_upnp.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-03 00:15:43 +0200
committerChristian Breunig <christian@breunig.cc>2024-04-03 21:02:47 +0200
commit3ea68d648581a20797b9e1b4438299a057a1820d (patch)
treea8dc0e66963a9c46a13e3af3b24c5335ca0d5393 /src/conf_mode/service_upnp.py
parent86f793fcb2c6be880819a572cc7982861ca38314 (diff)
downloadvyos-1x-3ea68d648581a20797b9e1b4438299a057a1820d.tar.gz
vyos-1x-3ea68d648581a20797b9e1b4438299a057a1820d.zip
T6199: drop unused Python imports
found using "git ls-files *.py | xargs pylint | grep W0611" (cherry picked from commit 274b2da242acd1f1f64ff1dee471e34295137c5f)
Diffstat (limited to 'src/conf_mode/service_upnp.py')
-rwxr-xr-xsrc/conf_mode/service_upnp.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/conf_mode/service_upnp.py b/src/conf_mode/service_upnp.py
index cf26bf9ce..0df8dc09e 100755
--- a/src/conf_mode/service_upnp.py
+++ b/src/conf_mode/service_upnp.py
@@ -54,9 +54,7 @@ def get_config(config=None):
def get_all_interface_addr(prefix, filter_dev, filter_family):
list_addr = []
- interfaces = netifaces.interfaces()
-
- for interface in interfaces:
+ for interface in netifaces.interfaces():
if filter_dev and interface in filter_dev:
continue
addrs = netifaces.ifaddresses(interface)