summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-05 17:48:03 +0000
committerGerrit Code Review <review@openstack.org>2017-06-05 17:48:03 +0000
commitc9fa0bc2ffecb820baa0af94575331d19210831e (patch)
tree00318f1e5828b5b435e885ad99fa7ce6e14191b1
parentc80fea7d2add9d39dc131f0feccb987ca5e801e7 (diff)
parent8da208dca0807f0261c77f440c67a94b63ba6138 (diff)
Merge "OSP-103: fix testpath with special char in tenant/segment" into stable/newton
-rw-r--r--networking_bigswitch/plugins/bigswitch/db/reachability_test_db.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/networking_bigswitch/plugins/bigswitch/db/reachability_test_db.py b/networking_bigswitch/plugins/bigswitch/db/reachability_test_db.py
index 64148ea..ac60e45 100644
--- a/networking_bigswitch/plugins/bigswitch/db/reachability_test_db.py
+++ b/networking_bigswitch/plugins/bigswitch/db/reachability_test_db.py
@@ -14,6 +14,7 @@
14# under the License. 14# under the License.
15 15
16from networking_bigswitch.plugins.bigswitch.i18n import _ 16from networking_bigswitch.plugins.bigswitch.i18n import _
17from networking_bigswitch.plugins.bigswitch.utils import Util
17from neutron.common import exceptions 18from neutron.common import exceptions
18from neutron.db import common_db_mixin 19from neutron.db import common_db_mixin
19from neutron.db import model_base 20from neutron.db import model_base
@@ -77,8 +78,8 @@ class ReachabilityTest(model_base.BASEV2,
77 78
78 def get_connection_source(self): 79 def get_connection_source(self):
79 source = {} 80 source = {}
80 source['tenant'] = self.src_tenant_name 81 source['tenant'] = Util.format_resource_name(self.src_tenant_name)
81 source['segment'] = self.src_segment_name 82 source['segment'] = Util.format_resource_name(self.src_segment_name)
82 source['ip'] = self.src_ip 83 source['ip'] = self.src_ip
83 return source 84 return source
84 85
@@ -210,8 +211,8 @@ class ReachabilityQuickTest(model_base.BASEV2,
210 211
211 def get_connection_source(self): 212 def get_connection_source(self):
212 source = {} 213 source = {}
213 source['tenant'] = self.src_tenant_name 214 source['tenant'] = Util.format_resource_name(self.src_tenant_name)
214 source['segment'] = self.src_segment_name 215 source['segment'] = Util.format_resource_name(self.src_segment_name)
215 source['ip'] = self.src_ip 216 source['ip'] = self.src_ip
216 return source 217 return source
217 218