summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSumedh Sathaye <sumedh.sathaye@calxeda.com>2013-04-25 15:27:42 -0500
committerSumedh Sathaye <sumedh.sathaye@calxeda.com>2013-04-26 13:31:55 -0500
commitf67405d47315564bcfec5abf16b04c6f10aaeee8 (patch)
tree03772cbd9f4b2d9e5a48fd01b91c643cb19a908c
parent37422a2e68ac4737c501143f1c2b53a3fa95fadb (diff)
downloadpyipmi-f67405d47315564bcfec5abf16b04c6f10aaeee8.tar.gz
Added support to get a node's link map as a list of strings.
The list represents link connectivity as held in that node. This function supports the fabric info link map test.
-rw-r--r--pyipmi/bmc.py4
-rw-r--r--pyipmi/commands/fabric.py1
2 files changed, 5 insertions, 0 deletions
diff --git a/pyipmi/bmc.py b/pyipmi/bmc.py
index 81aeac3..36461e5 100644
--- a/pyipmi/bmc.py
+++ b/pyipmi/bmc.py
@@ -544,6 +544,10 @@ class BMC(object):
return self.handle.fabric_info_getroutingtable(filename=filename,
tftp_addr=tftp_addr)
+ def fabric_info_get_link_map(self, filename, tftp_addr=None):
+ return self.handle.fabric_info_getlinkmap(filename=filename,
+ tftp_addr=tftp_addr)
+
class LanBMC(BMC):
"""A BMC that's accessed over the LAN"""
def __init__(self,
diff --git a/pyipmi/commands/fabric.py b/pyipmi/commands/fabric.py
index 3064be4..703935d 100644
--- a/pyipmi/commands/fabric.py
+++ b/pyipmi/commands/fabric.py
@@ -320,4 +320,5 @@ fabric_commands = {
"node_rmmacaddr" : NodeRmMacAddrCommand,
"fabric_info_getroutingtable" : GetRoutingTableCommand,
+ "fabric_info_getlinkmap" : GetLinkMapCommand,
}