diff options
author | matthew.hodgins <matthew.hodgins@calxeda.com> | 2013-12-10 15:52:31 -0600 |
---|---|---|
committer | matthew.hodgins <matthew.hodgins@calxeda.com> | 2013-12-11 10:38:12 -0600 |
commit | 4e47314d27e579d2310de0b6a6a8a9715acb0c42 (patch) | |
tree | 549f0c3fc974f1f83b51226f65918040b9d4211e | |
parent | fcb86f86eb71e273ba6229885c8d24c397aa53d5 (diff) | |
download | cxmanage-4e47314d27e579d2310de0b6a6a8a9715acb0c42.tar.gz |
CXMAN-258 added function to get/set uplink_mode
Signed-off-by: matthew.hodgins <matthew.hodgins@calxeda.com>
-rw-r--r-- | cxmanage_api/fabric.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cxmanage_api/fabric.py b/cxmanage_api/fabric.py index b549a0f..6063ed8 100644 --- a/cxmanage_api/fabric.py +++ b/cxmanage_api/fabric.py @@ -290,6 +290,26 @@ class Fabric(object): """ return self._run_on_all_nodes(async, "get_uplink_info") + def get_uplink_mode(self): + """Gets the fabric uplink mode + + >>> fabric.get_uplink_mode() + 1 + + :return: The uplink mode + :rtype: int + + """ + return self.primary_node.bmc.fabric_config_get_uplink_mode() + + def set_uplink_mode(self, uplink_mode): + """Sets the fabric uplink mode + + >>> fabric.set_uplink_mode(uplink_mode=0) + + """ + self.primary_node.bmc.fabric_config_set_uplink_mode(uplink_mode) + def get_uplink_speed(self, async=False): """Gets the uplink speed of every node in the fabric. |