Skip to content

Commit f33422e

Browse files
committed
neutron: support long namespace and interface name
1 parent ca2e897 commit f33422e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

topology/probes/neutron/neutron.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,8 @@ func (mapper *NeutronProbe) Stop() {
454454
func NewNeutronProbe(g *graph.Graph, authURL, username, password, tenantName, regionName, domainName string, availability gophercloud.Availability) (*NeutronProbe, error) {
455455
// only looking for interfaces matching the following regex as nova, neutron interfaces match this pattern
456456

457-
intfRegexp := regexp.MustCompile(`((tap|qr-|qg-|qvo)[a-fA-F0-9]{8}-[a-fA-F0-9]{2})|(vnet[0-9]+)`)
458-
nsRegexp := regexp.MustCompile(`(qrouter|qdhcp)-[a-fA-F0-9]{8}`)
457+
intfRegexp := regexp.MustCompile(`((tap|qr-|qg-|qvo)[a-fA-F0-9\-]+)|(vnet[0-9]+)`)
458+
nsRegexp := regexp.MustCompile(`(qrouter|qdhcp)-[a-fA-F0-9\-]+`)
459459

460460
opts := gophercloud.AuthOptions{
461461
IdentityEndpoint: authURL,

0 commit comments

Comments
 (0)