Details
Description
Hello,
i have some missing VLAN port members with our TP-Link T1700G-28TQ Switches. I debugged it little bit an it seems that not all ports have a slash in their name and can even reference previous port names. This means that line 67 onwards in ./includes/discovery/vlans/tplink-dot1q-vlan-mib.inc.php and line 55 in ./includes/polling/ports/tplink-dot1q-vlan-mib.inc.php do not work in all cases.
Here is an example:
TPLINK-DOT1Q-VLAN-MIB::vlanTagPortMemberAdd.2 = STRING: "Gi1/0/3-24,Te1/0/27-28,Gi2/0/3-24,Te2/0/27-28,Po1-3,7,11,13-14"
This currently does not add the ports Po1, Po2, Po3, Po7, Po11, Po13, Po14.
Additionally only the tagged vlan ports seem to get added but not the untagged ones. Maybe this can be implemented?
Here is an example:
TPLINK-DOT1Q-VLAN-MIB::vlanUntagPortMemberAdd.2 = STRING: "Gi1/0/1-2,2/0/1-2,Po4-6,8-10,12"
Thank you.
poller.debug
I think i can see the problem. It seems like the switch reports VLAN 2 as the default PVID (vlanPortPvid) even if that is not what is configured on the switch (default should be VLAN 1 und some ports have 2 and some 100). This seems to be a switch bug but even then there could be multiple untagged VLANs on one port (Asymmetric VLAN). For example VLAN 1 is untagged on all ports, some ports additionally have VLAN 2 or 100 set. This is the configuration that vlanUntagPortMemberAdd provides (as far as i can tell).
Maybe this is intended observium behavior (pvid = untagged and only one port can be untagged), but not sure.