aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/sdn/onos/sfc/sfc_onos.py
diff options
context:
space:
mode:
authorsathishkumarmurugesan <sathishkumar@huawei.com>2017-01-19 11:59:54 +0530
committersathishkumar murugesan <sathishkumar@huawei.com>2017-01-23 12:03:01 +0000
commit64b199fd56e914a8511a8c59f3e08d012f627ec5 (patch)
tree7c811a82344b689d29fbe4c5c3820648443fbcb9 /functest/opnfv_tests/sdn/onos/sfc/sfc_onos.py
parent9bc652fe41541a05f52c09d01a2e671eae5b2965 (diff)
Fix for opnfv onos-sfc scripts
Change-Id: I676885b364e81e2266e72defd7fb21bbc96b093d Signed-off-by: sathishkumarmurugesan <sathishkumar@huawei.com>
Diffstat (limited to 'functest/opnfv_tests/sdn/onos/sfc/sfc_onos.py')
-rw-r--r--functest/opnfv_tests/sdn/onos/sfc/sfc_onos.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/functest/opnfv_tests/sdn/onos/sfc/sfc_onos.py b/functest/opnfv_tests/sdn/onos/sfc/sfc_onos.py
index 349b42a8..090502ba 100644
--- a/functest/opnfv_tests/sdn/onos/sfc/sfc_onos.py
+++ b/functest/opnfv_tests/sdn/onos/sfc/sfc_onos.py
@@ -232,10 +232,8 @@ class SfcOnos:
else:
return(response.status_code)
- url = ("http://%s:8774//v2.1/%s/ports/"
- "%s/flavors?name=m1.tiny" % (self.nova_hostname,
- self.tenant_id))
-
+ url = ("http://%s:8774/v2.1/%s/flavors?"
+ "name=m1.tiny" % (self.nova_hostname, self.tenant_id))
headers = {"Accept": "application/json", "Content-Type":
"application/json", "X-Auth-Token": self.token_id}
response = requests.get(url, headers=headers)
@@ -344,7 +342,7 @@ class SfcOnos:
def getPortPair(self):
"""Query the Portpair id value."""
for p in range(0, 1):
- url = ("http://%s:9696/%s/ports/"
+ url = ("http://%s:9696/%s/"
"sfc/port_pairs?name=PP1" % (self.neutron_hostname,
self.osver))
headers = {"Accept": "application/json",