mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
0c8332bc5e
Ticket: Reviewed By: CCR-3804 Testing Done: Tested regex parsing failures This is mostly a cosmetic fix. we were failing with weird/unclear errors on unable to parse regex expressions correctly. This patch mainly adds the interface name to the message and plus adds an info message showing the actual regex being used in searches. example config: {noformat} auto br-roopa iface br-roopa bridge-vlan-aware yes bridge-ports regex '(\\Aswp3\\Z|\\Aswp4\\Z)' bridge-pvid 20 {noformat} before the patch: warning: br-roopa: error getting dependent interfaces (unbalanced parenthesis) after the patch (not pretty but easier to debug) info: br-roopa: evaluating port expr '['regex', "'(", 'Aswp3', 'Z|', 'Aswp4', "Z)'"]' warning: br-roopa: error getting dependent interfaces (br-roopa: error searching regex ''(' in swp38 (unbalanced parenthesis)) (cherry picked from commit bcca6f753a25494666d53f1f2f3c855ffa41d7f0)