From e29972ec04f96fa9c560f864113599ce313e1240 Mon Sep 17 00:00:00 2001 From: Zeling Feng Date: Wed, 4 Nov 2020 18:17:33 -0800 Subject: Make the regex for inet6Line in packetimpact/netdevs more accurate PiperOrigin-RevId: 340763455 --- test/packetimpact/netdevs/netdevs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/packetimpact/netdevs/netdevs.go b/test/packetimpact/netdevs/netdevs.go index eecfe0730..006988896 100644 --- a/test/packetimpact/netdevs/netdevs.go +++ b/test/packetimpact/netdevs/netdevs.go @@ -40,7 +40,7 @@ var ( deviceLine = regexp.MustCompile(`^\s*(\d+): (\w+)`) linkLine = regexp.MustCompile(`^\s*link/\w+ ([0-9a-fA-F:]+)`) inetLine = regexp.MustCompile(`^\s*inet ([0-9./]+)`) - inet6Line = regexp.MustCompile(`^\s*inet6 ([0-9a-fA-Z:/]+)`) + inet6Line = regexp.MustCompile(`^\s*inet6 ([0-9a-fA-F:/]+)`) ) // ParseDevices parses the output from `ip addr show` into a map from device -- cgit v1.2.3