diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-07-07 13:22:29 +0200 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2016-07-07 13:22:29 +0200 |
commit | 627aed69c99bf0c3f8a0ffd4268cef74da956953 (patch) | |
tree | 0e46a1a4d84ea6cd6452a70d1e9345a4b2620f1f /utils | |
parent | a37e482d1566c7fa512d4fa874200ab089eb4384 (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.py | 9 |
1 files changed, 4 insertions, 5 deletions
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 |