From 627aed69c99bf0c3f8a0ffd4268cef74da956953 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Thu, 7 Jul 2016 13:22:29 +0200 Subject: [SDNVPN] Bugfix bgpvpn functions in openstack utils JIRA: FUNCTEST-99 Change-Id: Ia3fd91ec1dff5283edc3df098bb5cec342f87aea Signed-off-by: jose.lausuch --- utils/openstack_utils.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'utils') diff --git a/utils/openstack_utils.py b/utils/openstack_utils.py index 2a302483..fcdce547 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 -- cgit 1.2.3-korg