Bug 782 - v-switch status not displaying properly

Review Request #467 — Created Sept. 20, 2024 and submitted

apoorva.sn
AVX2
rel_avx_2_7_2
782
pmurugaiyan, prajesh, shuinvy, wli

Problem

For vswitch status is not displayed in the WebUI

Solution

Made changes to show the connected interface status for each vSwitch. So that we know if the vSwitch is Up/Down

Tested with the Test data :
switch name vs1:
port3:
Link detected: no
Speed: Unknown!
switch name vs2:
port2:per
Link detected: no
Speed: Unknown!
port1:
Link detected: yes
Speed: 10000Mb/s
bond0:
port4:
Link detected: no
Speed: Unknown!
port5:
Link detected: no
Speed: Unknown!
switch name vs3:

Example JSON response sent to UI:

[
{'ports':
[{'port_name': 'port3', 'link_status': 'Down'}],
'bonds': [], 'name': 'vs1', 'mode': 'Native'},
{'ports':
[{'port_name': 'port2', 'link_status': 'Down'},
{'port_name': 'port1', 'link_status': 'Up'}],
'bonds': [{'bond_name': 'bond0',
'ports_info': [{'port_name': 'port4', 'link_status': 'Down'}, {'port_name': 'port5', 'link_status': 'Down'}]
}], 'name': 'vs2', 'mode': 'Native'}
]


apoorva.sn
shuinvy
  1. Ship It!
  2. 
      
apoorva.sn
prajesh
  1. Ship It!
  2. 
      
apoorva.sn
Review request changed

Status: Closed (submitted)

Loading...