mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge release branch 4.9 to master
* 4.9: CLOUDSTACK-9811: fix duplicated nics on VR caused by nic name p<slot_number>p<port_number>
This commit is contained in:
commit
ec2d4dd422
@ -1516,7 +1516,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
||||
|
||||
private String getBroadcastUriFromBridge(final String brName) {
|
||||
final String pif = matchPifFileInDirectory(brName);
|
||||
final Pattern pattern = Pattern.compile("(\\D+)(\\d+)(\\D*)(\\d*)");
|
||||
final Pattern pattern = Pattern.compile("(\\D+)(\\d+)(\\D*)(\\d*)(\\D*)(\\d*)");
|
||||
final Matcher matcher = pattern.matcher(pif);
|
||||
s_logger.debug("getting broadcast uri for pif " + pif + " and bridge " + brName);
|
||||
if(matcher.find()) {
|
||||
@ -1524,7 +1524,9 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
||||
return BroadcastDomainType.Vxlan.toUri(matcher.group(2)).toString();
|
||||
}
|
||||
else{
|
||||
if (!matcher.group(4).isEmpty()) {
|
||||
if (!matcher.group(6).isEmpty()) {
|
||||
return BroadcastDomainType.Vlan.toUri(matcher.group(6)).toString();
|
||||
} else if (!matcher.group(4).isEmpty()) {
|
||||
return BroadcastDomainType.Vlan.toUri(matcher.group(4)).toString();
|
||||
} else {
|
||||
//untagged or not matching (eth|bond|team)#.#
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user