libteam
libteam copied to clipboard
this way of compare cause wrong interface name been matched
for example,if the first port in iteration is "Ethernet42", but searching target is “Ethernet4”, then match will be met.
which cause: i use command "teamdctl PortChannel01 state item get ports.Ethernet4.ifinfo.ifname" but i got is: "Ethernet42"
https://github.com/jpirko/libteam/blob/69a7494bb77dc10bb27076add07b380dbd778592/teamd/teamd_state.c#L320