summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorevasquez <eric.vasquez@calxeda.com>2013-07-11 10:26:38 -0500
committerevasquez <eric.vasquez@calxeda.com>2013-07-11 10:26:38 -0500
commit9c29f4c5f41feb912c5f9d9776244d37c9b26be3 (patch)
tree82592708d795d8ebe64c60e2c8e5162c72546c3a
parent685c10537a91cf2c700bdd5ca19bb533bd1411d6 (diff)
downloadcxmanage-9c29f4c5f41feb912c5f9d9776244d37c9b26be3.tar.gz
Added doc example usage for get_fabric_macaddrs().
-rw-r--r--cxmanage_api/node.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/cxmanage_api/node.py b/cxmanage_api/node.py
index 794cec9..f1113ed 100644
--- a/cxmanage_api/node.py
+++ b/cxmanage_api/node.py
@@ -1024,6 +1024,20 @@ class Node(object):
def get_fabric_macaddrs(self):
"""Gets what macaddr information THIS node knows about the Fabric.
+ >>> node.get_fabric_macaddrs()
+ {0: {0: ['fc:2f:40:ab:cd:cc'],
+ 1: ['fc:2f:40:ab:cd:cd'],
+ 2: ['fc:2f:40:ab:cd:ce']},
+ 1: {0: ['fc:2f:40:3e:66:e0'],
+ 1: ['fc:2f:40:3e:66:e1'],
+ 2: ['fc:2f:40:3e:66:e2']},
+ 2: {0: ['fc:2f:40:fd:37:34'],
+ 1: ['fc:2f:40:fd:37:35'],
+ 2: ['fc:2f:40:fd:37:36']},
+ 3: {0: ['fc:2f:40:0e:4a:74'],
+ 1: ['fc:2f:40:0e:4a:75'],
+ 2: ['fc:2f:40:0e:4a:76']}}
+
:return: Returns a map of node_ids->ports->mac_addresses.
:rtype: dictionary