Browse Source

Merge "Add getter for router BGP neighbors"

changes/80/738980/1
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
cc782b4d10
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