Skip to content
  • Weibin Sun's avatar
    Apply changes on boss installation to the source: add isSwitchPort and... · 7bd594ea
    Weibin Sun authored
    Apply changes on boss installation to the source: add isSwitchPort and getVlanIfaces to snmpit_lib, isSwitchPort detects if a given port is on switch, getVlanIfaces get ports in a Vlan in iface format; call getVlanIfaces from getVlanPorts to reuse the code to find members in a VLAn; in convertPortFromIface, detect if a port is actually on switch and get the port in node:card.port format, but now the return value is still node:card because lots of code in snmpit and snmpit_lib heavily depend on the node:card format. In snmpit, check if a port is on switch before portControl and getInterfaceSettings to avoid errors cause by port-not-found. In snmpit_apcon, try to refine the given ports in setPortsVlan and portControl to deal with switch port, also a more robust function to translate port from pc node format to switch format.
    7bd594ea