jpirko / libteam

team netdevice library
GNU Lesser General Public License v2.1
225 stars 57 forks source link

this way of compare cause wrong interface name been matched #61

Open yintao1995 opened 3 years ago

yintao1995 commented 3 years ago

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