summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorevasquez <eric.vasquez@calxeda.com>2013-07-11 10:23:18 -0500
committerevasquez <eric.vasquez@calxeda.com>2013-07-11 10:23:18 -0500
commit16883f61b53b9465456b173189497e293f83aa1b (patch)
tree7fcc63ce41a90b74858f98727b47513f8aab88a2
parentd3813d5e5cd1d14b540385901f25b0bcf8d935ba (diff)
downloadcxmanage-16883f61b53b9465456b173189497e293f83aa1b.tar.gz
Added doc example usage for get_routing_table.
-rw-r--r--cxmanage_api/node.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cxmanage_api/node.py b/cxmanage_api/node.py
index 9405d2e..4870607 100644
--- a/cxmanage_api/node.py
+++ b/cxmanage_api/node.py
@@ -1186,6 +1186,9 @@ class Node(object):
def get_routing_table(self):
"""Gets the routing table as instantiated in the fabric switch.
+ >>> node.get_routing_table()
+ {1: [0, 0, 0, 3, 0], 2: [0, 3, 0, 0, 2], 3: [0, 2, 0, 0, 3]}
+
:return: Returns a map of node_id->rt_entries.
:rtype: dictionary