@@ -21,6 +21,7 @@ PORT_SPEED = "speed"
21
21
PORT_MTU_STATUS = "mtu"
22
22
PORT_DESCRIPTION = "description"
23
23
PORT_OPTICS_TYPE = "type"
24
+ PORT_PFC_ASYM_STATUS = "pfc_asym"
24
25
25
26
26
27
def db_connect_appl ():
@@ -84,7 +85,7 @@ def state_db_port_optics_get(state_db, intf_name, type):
84
85
85
86
# ========================== interface-status logic ==========================
86
87
87
- header_stat = ['Interface' , 'Lanes' , 'Speed' , 'MTU' , 'Alias' , 'Oper' , 'Admin' , 'Type' ]
88
+ header_stat = ['Interface' , 'Lanes' , 'Speed' , 'MTU' , 'Alias' , 'Oper' , 'Admin' , 'Type' , 'Asym PFC' ]
88
89
89
90
class IntfStatus (object ):
90
91
@@ -111,7 +112,8 @@ class IntfStatus(object):
111
112
appl_db_port_status_get (self .appl_db , key , PORT_ALIAS ),
112
113
appl_db_port_status_get (self .appl_db , key , PORT_OPER_STATUS ),
113
114
appl_db_port_status_get (self .appl_db , key , PORT_ADMIN_STATUS ),
114
- state_db_port_optics_get (self .state_db , key , PORT_OPTICS_TYPE )))
115
+ state_db_port_optics_get (self .state_db , key , PORT_OPTICS_TYPE ),
116
+ appl_db_port_status_get (self .appl_db , key , PORT_PFC_ASYM_STATUS )))
115
117
116
118
# Sorting and tabulating the result table.
117
119
sorted_table = natsorted (table )
0 commit comments