mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
relax KVM agent setup to allow non-bridge traffic labels
(guest bridges are created on physical device, no need for bridge traffic label)
This commit is contained in:
parent
918bc74050
commit
c2e2f6ce63
@ -1055,7 +1055,7 @@ ServerResource {
|
|||||||
String fname = interfaces[i].getName();
|
String fname = interfaces[i].getName();
|
||||||
s_logger.debug("matchPifFileInDirectory: file name '"+fname+"'");
|
s_logger.debug("matchPifFileInDirectory: file name '"+fname+"'");
|
||||||
if (fname.startsWith("eth") || fname.startsWith("bond")
|
if (fname.startsWith("eth") || fname.startsWith("bond")
|
||||||
|| fname.startsWith("vlan") || fname.startsWith("em")
|
|| fname.startsWith("vlan") || fname.startsWith("vxlan") || fname.startsWith("em")
|
||||||
|| fname.matches("^p\\d+p\\d+.*")) {
|
|| fname.matches("^p\\d+p\\d+.*")) {
|
||||||
return fname;
|
return fname;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -96,8 +96,9 @@ class networkConfigBase:
|
|||||||
return False
|
return False
|
||||||
if self.syscfg.env.bridgeType == "openvswitch" and not self.netcfg.isOvsBridge(br):
|
if self.syscfg.env.bridgeType == "openvswitch" and not self.netcfg.isOvsBridge(br):
|
||||||
raise CloudInternalException("%s is not an openvswitch bridge" % br)
|
raise CloudInternalException("%s is not an openvswitch bridge" % br)
|
||||||
if self.syscfg.env.bridgeType == "native" and not self.netcfg.isBridge(br):
|
if self.syscfg.env.bridgeType == "native" and not self.netcfg.isBridge(br) and not self.netcfg.isNetworkDev(br):
|
||||||
raise CloudInternalException("%s is not a bridge" % br)
|
# traffic label doesn't have to be a bridge, we'll create bridges on it
|
||||||
|
raise CloudInternalException("%s is not a bridge and not a net device" % br)
|
||||||
preCfged = True
|
preCfged = True
|
||||||
|
|
||||||
return preCfged
|
return preCfged
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user