Browse Source

Add getter for router BGP neighbors

Change-Id: I704996a094c6dfbb7a1761c86ec40f86ebed0cf7
tags/16.0.5
asarfaty 1 month ago
committed by Adit Sarfaty
parent
commit
5ddae476bc
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      vmware_nsxlib/v3/core_resources.py

+ 5
- 0
vmware_nsxlib/v3/core_resources.py View File

@@ -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))


Loading…
Cancel
Save