From c76eaea0595f4ba94a377f1a9bd2435c66706faa Mon Sep 17 00:00:00 2001 From: asarfaty Date: Mon, 29 Jun 2020 13:05:05 +0200 Subject: [PATCH] Add getter for router BGP neighbors Change-Id: I704996a094c6dfbb7a1761c86ec40f86ebed0cf7 --- vmware_nsxlib/v3/core_resources.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vmware_nsxlib/v3/core_resources.py b/vmware_nsxlib/v3/core_resources.py index 7fbcdb48..71fdc75e 100644 --- a/vmware_nsxlib/v3/core_resources.py +++ b/vmware_nsxlib/v3/core_resources.py @@ -868,6 +868,11 @@ class NsxLibLogicalRouter(utils.NsxLibApiBase): resource = ('logical-routers/%s/routing/bgp' % logical_router_id) return self.client.get(resource) + def get_bgp_neighbors(self, logical_router_id): + resource = ('logical-routers/%s/routing/bgp/neighbors' % + logical_router_id) + return self.client.get(resource) + def get_route_map(self, logical_router_id, route_map_id): resource = ('logical-routers/%s/routing/route-maps/%s' % ( logical_router_id, route_map_id))