Browse Source

Merge "Add getter for router BGP neighbors" into stable/train

stable/train
Zuul 5 days ago
committed by Gerrit Code Review
parent
commit
4c78127752
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      vmware_nsxlib/v3/core_resources.py

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

@@ -846,6 +846,15 @@ class NsxLibLogicalRouter(utils.NsxLibApiBase):
resource = self.get_path()
return self.client.list(resource)

def get_bgp_config(self, logical_router_id):
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)


class NsxLibEdgeCluster(utils.NsxLibApiBase):



Loading…
Cancel
Save