From 22e4bdccf11ba3bd64b7291c3eb21de273b7eab1 Mon Sep 17 00:00:00 2001 From: Aaron Rosen Date: Mon, 3 Sep 2012 15:00:48 -0700 Subject: [PATCH] ovs_lib unable to parse return when port == -1 Fixes bug 1045536 Change-Id: I463dd31d67dff74caae1a0230df5d78c21beaf04 --- quantum/agent/linux/ovs_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantum/agent/linux/ovs_lib.py b/quantum/agent/linux/ovs_lib.py index e982bac80..f760e66b3 100644 --- a/quantum/agent/linux/ovs_lib.py +++ b/quantum/agent/linux/ovs_lib.py @@ -55,7 +55,7 @@ class OVSBridge: mac = 'attached-mac="(?P([a-fA-F\d]{2}:){5}([a-fA-F\d]{2}))"' iface = 'iface-id="(?P[^"]+)"' name = 'name\s*:\s"(?P[^"]*)"' - port = 'ofport\s*:\s(?P\d+)' + port = 'ofport\s*:\s(?P-?\d+)' _re = ('%(external)s:\s{ ( %(mac)s,? | %(iface)s,? | . )* }' ' \s+ %(name)s \s+ %(port)s' % locals()) return re.compile(_re, re.M | re.X) -- 2.45.2