diff options
author | Romanos Skiadas <rski@intracom-telecom.com> | 2016-09-14 10:36:50 +0300 |
---|---|---|
committer | Romanos Skiadas <rski@intracom-telecom.com> | 2016-09-14 10:46:06 +0300 |
commit | 5aa02e553232477625d364b8591d7b729a64cfea (patch) | |
tree | 1a6af7b62906fbdf34a6e965e19641401097e694 | |
parent | 93d2aaac6ac519ad848064425fd9a4d5de019e45 (diff) |
Add utils for getting bgpvpn information
Change-Id: I86f9e2afa6578dc60ea82fd163427a4f6e2f8526
Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
Co-Authored-By: George Paraskevopoulos <geopar@intracom-telecom.com>
-rwxr-xr-x | utils/openstack_utils.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/openstack_utils.py b/utils/openstack_utils.py index 8c2e00cb1..5a4775d3a 100755 --- a/utils/openstack_utils.py +++ b/utils/openstack_utils.py @@ -727,6 +727,18 @@ def update_bgpvpn(neutron_client, bgpvpn_id, **kwargs): def delete_bgpvpn(neutron_client, bgpvpn_id): return neutron_client.delete_bgpvpn(bgpvpn_id) + +def get_bgpvpn(neutron_client, bgpvpn_id): + return neutron_client.show_bgpvpn(bgpvpn_id) + + +def get_bgpvpn_routers(neutron_client, bgpvpn_id): + return get_bgpvpn(neutron_client, bgpvpn_id)['bgpvpn']['routers'] + + +def get_bgpvpn_networks(neutron_client, bgpvpn_id): + return get_bgpvpn(neutron_client, bgpvpn_id)['bgpvpn']['networks'] + # ********************************************* # SEC GROUPS # ********************************************* |