summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorevasquez <eric.vasquez@calxeda.com>2013-07-11 10:20:15 -0500
committerevasquez <eric.vasquez@calxeda.com>2013-07-11 10:20:15 -0500
commit7ce5df7d9cdbc2265505a68a3e671a5856ab7921 (patch)
tree08c705729c22efb521454ba947cbe743e5c03c14
parent17e501385a4550815a84b8601d202882e7776504 (diff)
downloadcxmanage-7ce5df7d9cdbc2265505a68a3e671a5856ab7921.tar.gz
Added doc example for get_link_stats()
-rw-r--r--cxmanage_api/node.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/cxmanage_api/node.py b/cxmanage_api/node.py
index b148972..2e19be8 100644
--- a/cxmanage_api/node.py
+++ b/cxmanage_api/node.py
@@ -1097,6 +1097,27 @@ class Node(object):
def get_link_stats(self, link=0):
"""Gets the linkstats for the link specified.
+ >>> node.get_link_stats()
+ {'FS_LC0_BYTE_CNT_0': '0x0',
+ 'FS_LC0_BYTE_CNT_1': '0x0',
+ 'FS_LC0_CFG_0': '0x1000d07f',
+ 'FS_LC0_CFG_1': '0x105f',
+ 'FS_LC0_CM_RXDATA_0': '0x0',
+ 'FS_LC0_CM_RXDATA_1': '0x0',
+ 'FS_LC0_CM_TXDATA_0': '0x82000002',
+ 'FS_LC0_CM_TXDATA_1': '0x0',
+ 'FS_LC0_PKT_CNT_0': '0x0',
+ 'FS_LC0_PKT_CNT_1': '0x0',
+ 'FS_LC0_RDRPSCNT': '0x3e791',
+ 'FS_LC0_RERRSCNT': '0x0',
+ 'FS_LC0_RMCSCNT': '0x173b923',
+ 'FS_LC0_RPKTSCNT': '0x0',
+ 'FS_LC0_RUCSCNT': '0x43cab',
+ 'FS_LC0_SC_STAT': '0x0',
+ 'FS_LC0_STATE': '0x1033',
+ 'FS_LC0_TDRPSCNT': '0x0',
+ 'FS_LC0_TPKTSCNT': '0x1'}
+
:param link: The link to get stats for (0-4).
:type link: integer