mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix iptable rules in ubuntu 20 for bridge name (#5318)
In ubuntu20 the interface name contains @ synbol and because of that even the iptable rules for brdige name contains this symbol which causes ping issues. Remove the @ symbol from iptable rule to fix the issue Co-authored-by: Rakesh Venkatesh <rakeshv@apache.org>
This commit is contained in:
parent
6446797fdc
commit
5ed3246e41
@ -185,7 +185,7 @@ def destroy_network_rules_for_nic(vm_name, vm_ip, vm_mac, vif, sec_ips):
|
|||||||
logging.debug("Ignoring failure to delete ebtable rules for vm: " + vm_name)
|
logging.debug("Ignoring failure to delete ebtable rules for vm: " + vm_name)
|
||||||
|
|
||||||
def get_bridge_physdev(brname):
|
def get_bridge_physdev(brname):
|
||||||
physdev = execute("bridge -o link show | awk '/master %s / && !/^[0-9]+: vnet/ {print $2}' | head -1 | cut -d ':' -f1" % brname)
|
physdev = execute("bridge -o link show | awk '/master %s / && !/^[0-9]+: vnet/ {print $2}' | head -1 | cut -d ':' -f1 | cut -d '@' -f1" % brname)
|
||||||
return physdev.strip()
|
return physdev.strip()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user