Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix get_bridge_physdev where it returns "device:" instead of just "de…
…vice"
  • Loading branch information
GabrielBrascher committed Mar 2, 2021
commit 37fafb25fb5d892db4bc4785298c23328bf8a645
2 changes: 1 addition & 1 deletion scripts/vm/network/security_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def split_ips_by_family(ips):


def get_bridge_physdev(brname):
physdev = execute("bridge -o link show | awk '/master %s / && !/^[0-9]+: vnet/ {print $2}' | head -1" % brname)
physdev = execute("bridge -o link show | awk '/master %s / && !/^[0-9]+: vnet/ {print $2}' | head -1 | cut -d ':' -f1" % brname)
return physdev.strip()


Expand Down