NSX|V: set teaming standby ports
In the event that the active teaming port fails then we will enable the stanby ports. Change-Id: If85711b2fae916559c8e1c62a82ed91f8a7e29d4
This commit is contained in:
parent
8d7f6e07d0
commit
456c21fd9a
@ -465,3 +465,11 @@ class DvsManager(object):
|
|||||||
policy.uplinkPortOrder.inherited = False
|
policy.uplinkPortOrder.inherited = False
|
||||||
ports = teaming_data['failoverUplinkPortNames']
|
ports = teaming_data['failoverUplinkPortNames']
|
||||||
policy.uplinkPortOrder.activeUplinkPort = ports
|
policy.uplinkPortOrder.activeUplinkPort = ports
|
||||||
|
# The standby port will be those not configure as active ones
|
||||||
|
uplinks = self._session.invoke_api(vim_util,
|
||||||
|
"get_object_property",
|
||||||
|
self._session.vim,
|
||||||
|
self._dvs_moref,
|
||||||
|
"config.uplinkPortPolicy")
|
||||||
|
standby = list(set(uplinks.uplinkPortName) - set(ports))
|
||||||
|
policy.uplinkPortOrder.standbyUplinkPort = standby
|
||||||
|
Loading…
Reference in New Issue
Block a user