Add host switch profiles api
Change-Id: I48e8a0f5b44c58ed8494862e09a03b7b27f87f8e
This commit is contained in:
parent
8f61ac6c1e
commit
892e86cd53
|
@ -2310,6 +2310,13 @@ class TestNsxlibClusterNodesConfigTestCase(BaseTestResource):
|
|||
test_constants.FAKE_MANAGER_IP2], result)
|
||||
|
||||
|
||||
class NsxlibHostSwitchProfilesTestCase(BaseTestResource):
|
||||
|
||||
def setUp(self):
|
||||
super(NsxlibHostSwitchProfilesTestCase, self).setUp(
|
||||
resources.NsxlibHostSwitchProfiles)
|
||||
|
||||
|
||||
class InventoryTestCase(BaseTestResource):
|
||||
CONTAINER_CLUSTER = "k8s-cluster-1"
|
||||
|
||||
|
|
|
@ -108,6 +108,8 @@ class NsxLib(lib.NsxLibBase):
|
|||
self.client, self.nsxlib_config, nsxlib=self)
|
||||
self.global_routing = core_resources.NsxLibGlobalRoutingConfig(
|
||||
self.client, self.nsxlib_config, nsxlib=self)
|
||||
self.host_switch_profiles = resources.NsxlibHostSwitchProfiles(
|
||||
self.client, self.nsxlib_config, nsxlib=self)
|
||||
|
||||
# Update tag limits
|
||||
self.tag_limits = self.get_tag_limits()
|
||||
|
|
|
@ -722,6 +722,16 @@ class NsxlibClusterNodesConfig(utils.NsxLibApiBase):
|
|||
return manager_ips
|
||||
|
||||
|
||||
class NsxlibHostSwitchProfiles(utils.NsxLibApiBase):
|
||||
@property
|
||||
def uri_segment(self):
|
||||
return 'host-switch-profiles'
|
||||
|
||||
@property
|
||||
def resource_type(self):
|
||||
return 'UplinkHostSwitchProfile'
|
||||
|
||||
|
||||
class Inventory(utils.NsxLibApiBase):
|
||||
"""REST APIs to support inventory service."""
|
||||
|
||||
|
|
Loading…
Reference in New Issue