Update regexp in func hpprocurveN1178Read8021QConfig to match Trk interfaces on HP...
authorigloo777 <igloo777@gmail.com>
Mon, 21 Jan 2019 14:24:12 +0000 (21:24 +0700)
committerDenis Ovsienko <denis@ovsienko.info>
Mon, 21 Jan 2019 14:24:12 +0000 (14:24 +0000)
wwwroot/inc/breed-hpprocurveN1178.php

index 3dd39dc..5c98579 100644 (file)
@@ -213,7 +213,7 @@ function hpprocurveN1178Read8021QConfig ($input)
                                {
                                continue;
                                }
-                       if (preg_match('/^([0-9]+)$/', trim($vlans), $matches))
+                       if (preg_match('/^((?:[0-9]+)|(?:[Tt]rk[0-9]+))$/', trim($vlans), $matches))
                                {
                                $port['port_id'] = $matches[1];
                                continue;