sonic-net / sonic-snmpagent

A net-snmpd agentx subagent for SONiC
Other
15 stars 113 forks source link

Test gap: add unit test of IfHighSpeed with PortChannel with no member ports #294

Closed qiluo-msft closed 1 year ago

qiluo-msft commented 1 year ago
          > what is the portchannel has no member ports?

Tested on DUT, and it is working with PortChannel with no member ports.

admin@sonic:~$ sudo config portchannel add PortChannel999
admin@sonic:~$ show int port
Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available,
       S - selected, D - deselected, * - not synced
  No.  Team Dev        Protocol     Ports
-----  --------------  -----------  --------------
  101  PortChannel101  LACP(A)(Up)  Ethernet112(S)
  102  PortChannel102  LACP(A)(Up)  Ethernet116(S)
  103  PortChannel103  LACP(A)(Up)  Ethernet120(S)
  104  PortChannel104  LACP(A)(Up)  Ethernet124(S)
  999  PortChannel999  LACP(A)(Dw)

root@sonic:/# snmpwalk -v2c -c msft 10.64.247.236 1.3.6.1.2.1.31.1.1.1.15
iso.3.6.1.2.1.31.1.1.1.15.1101 = Gauge32: 100000
iso.3.6.1.2.1.31.1.1.1.15.1102 = Gauge32: 100000
iso.3.6.1.2.1.31.1.1.1.15.1103 = Gauge32: 100000
iso.3.6.1.2.1.31.1.1.1.15.1104 = Gauge32: 100000
iso.3.6.1.2.1.31.1.1.1.15.1999 = Gauge32: 0

Originally posted by @qiluo-msft in https://github.com/sonic-net/sonic-snmpagent/issues/262#issuecomment-1724570326