mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Seems like the regex module might be behave a little bit different in python3. The regexes used to validate l2protocol-tunnel were returning incorrect lists: value=lldp,stp regex=['', 'l', 'l', 'd', 'p', '', 's', 't', 'p', ''] the patch simplifies the code by using str.translate and str.split Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>