summaryrefslogtreecommitdiff
path: root/bin
diff options
authorRod Smith <rod.smith@canonical.com>2022-02-03 15:54:19 -0500
committerRod Smith <rod.smith@canonical.com>2022-02-03 15:54:19 -0500
commit2983f95cd8026ac3fbdb1af315e0ba2600f09e36 (patch)
treed9d3411522ee9cba09c8bb04959a222bdd2ea921 /bin
parentb7b942d2987d8623cbb6fd1c1acc048bbf464fbe (diff)
Fix: Problems identified by Jeff with previous MR
Diffstat (limited to 'bin')
-rwxr-xr-xbin/network.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/network.py b/bin/network.py
index a4cefc1..da33f07 100755
--- a/bin/network.py
+++ b/bin/network.py
@@ -559,7 +559,7 @@ def make_target_list(iface, test_targets, log_warnings):
format(test_target, target))
logging.warning("test list since it's not within {}.".
format(net))
- return_list.remove(test_target)
+ return_list.remove(test_target)
except ValueError:
if log_warnings:
logging.warning("Invalid address: {}; skipping".
@@ -657,7 +657,7 @@ def interface_test(args):
extra_interfaces = \
[iface for iface in os.listdir("/sys/class/net")
if iface != "lo" and iface != args.interface and
- not iface.startswith("virbr")]
+ not iface.startswith("virbr") and not iface.startswith("lxdbr")]
for iface in extra_interfaces:
logging.debug("Shutting down interface:%s", iface)
@@ -708,7 +708,7 @@ def interface_test(args):
stderr=DEVNULL)
except CalledProcessError:
# This always errors out -- but it works!
- # The problem is virb0, which has the "linkdown" flag, which the
+ # The problem is virbr0, which has the "linkdown" flag, which the
# "ip route restore" command can't handle.
pass
temp.close()