summaryrefslogtreecommitdiff
path: root/src/conf_mode/service_upnp.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-03 19:23:14 +0200
committerGitHub <noreply@github.com>2024-04-03 19:23:14 +0200
commitd4b53a38359d80a4578d6fb2d8c76241b310f866 (patch)
tree72d8b52266a25c26132c615b64adfa8b3345ff7c /src/conf_mode/service_upnp.py
parentfe09b767cfae7879dcbb8b2cfd52644342776b7e (diff)
parent74198e68a6edbdb36a6103a7666de530bdd71696 (diff)
downloadvyos-1x-d4b53a38359d80a4578d6fb2d8c76241b310f866.tar.gz
vyos-1x-d4b53a38359d80a4578d6fb2d8c76241b310f866.zip
Merge pull request #3240 from c-po/spring-cleaning
T6199: spring cleaning - drop unused Python imports
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)