Github user ustcweizhou commented on the issue:

    https://github.com/apache/cloudstack/pull/2003
  
    @borisstoyanov 
    I suspect this is caused by the name of your public interface (p55p1). 
    can you please try the following change
    ```
    diff --git 
a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
 
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingReso
    index d925297..706f7d9 100755
    --- 
a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
    +++ 
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
    @@ -1481,7 +1481,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()) {
    @@ -1489,7 +1489,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)#.#
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to