summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-07-07 13:22:29 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2016-07-07 13:22:29 +0200
commit627aed69c99bf0c3f8a0ffd4268cef74da956953 (patch)
tree0e46a1a4d84ea6cd6452a70d1e9345a4b2620f1f /utils
parenta37e482d1566c7fa512d4fa874200ab089eb4384 (diff)
[SDNVPN] Bugfix bgpvpn functions in openstack utils
JIRA: FUNCTEST-99 Change-Id: Ia3fd91ec1dff5283edc3df098bb5cec342f87aea Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/openstack_utils.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/utils/openstack_utils.py b/utils/openstack_utils.py
index 2a3024831..fcdce5471 100644
--- a/utils/openstack_utils.py
+++ b/utils/openstack_utils.py
@@ -622,14 +622,13 @@ def create_bgpvpn(neutron_client, **kwargs):
def create_network_association(neutron_client, bgpvpn_id, neutron_network_id):
- json_body = {"network_association": {"network_id": neutron_network_id,
- "id": bgpvpn_id}}
- return neutron_client.create_network_association(json_body)
+ json_body = {"network_association": {"network_id": neutron_network_id}}
+ return neutron_client.create_network_association(bgpvpn_id, json_body)
-def update_bgpvpn(neutron_client, **kwargs):
+def update_bgpvpn(neutron_client, bgpvpn_id, **kwargs):
json_body = {"bgpvpn": kwargs}
- return neutron_client.update_bgpvpn(json_body)
+ return neutron_client.update_bgpvpn(bgpvpn_id, json_body)
# *********************************************
# SEC GROUPS