IWASE Yusuke
2017-06-23 01:31:31 UTC
This patch removes unexpected double quote around IP address in
OVSDB_SWITCH_ADDR.
e.g.)
NG: tcp:"172.17.0.2":6640
OK: tcp:172.17.0.2:6640
Signed-off-by: IWASE Yusuke <***@gmail.com>
---
ryu/tests/unit/lib/ovs/test_vsctl.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ryu/tests/unit/lib/ovs/test_vsctl.py b/ryu/tests/unit/lib/ovs/test_vsctl.py
index d32a536..28edf6e 100644
--- a/ryu/tests/unit/lib/ovs/test_vsctl.py
+++ b/ryu/tests/unit/lib/ovs/test_vsctl.py
@@ -83,7 +83,7 @@ class TestVSCtl(unittest.TestCase):
def _docker_inspect_ip_addr(cls, container):
return _run(
'docker inspect --format="{{.NetworkSettings.IPAddress}}" %s' %
- container)[0]
+ container)[0].strip('"')
@classmethod
def _set_up_mn_container(cls):
OVSDB_SWITCH_ADDR.
e.g.)
NG: tcp:"172.17.0.2":6640
OK: tcp:172.17.0.2:6640
Signed-off-by: IWASE Yusuke <***@gmail.com>
---
ryu/tests/unit/lib/ovs/test_vsctl.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ryu/tests/unit/lib/ovs/test_vsctl.py b/ryu/tests/unit/lib/ovs/test_vsctl.py
index d32a536..28edf6e 100644
--- a/ryu/tests/unit/lib/ovs/test_vsctl.py
+++ b/ryu/tests/unit/lib/ovs/test_vsctl.py
@@ -83,7 +83,7 @@ class TestVSCtl(unittest.TestCase):
def _docker_inspect_ip_addr(cls, container):
return _run(
'docker inspect --format="{{.NetworkSettings.IPAddress}}" %s' %
- container)[0]
+ container)[0].strip('"')
@classmethod
def _set_up_mn_container(cls):
--
2.7.4
2.7.4