Page MenuHomeVyOS Platform

Odd show interface behavior
Closed, ResolvedPublicBUG

Description

While checking a mix of bond and ethernet interfaces I noticed show interfaces ethernet eth5 and show interfaces bonding eth5 give the same output. While it isn't a big bug, it is kind of odd.

admin@br1:~$ show interfaces ethernet eth5
eth5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 3c:ec:ef:b1:d0:77 brd ff:ff:ff:ff:ff:ff
    inet x.x.x.x/29 brd x.x.x.x.255 scope global eth5
       valid_lft forever preferred_lft forever
    inet6 x:x:4::230a/120 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::3eec:efff:feb1:d077/64 scope link
       valid_lft forever preferred_lft forever
    Description: Transit 

    RX:           bytes      packets  errors  dropped  overrun       mcast
          2150682463414   4917008968       0      259        0          64
    TX:           bytes      packets  errors  dropped  carrier  collisions
         18983710733976  14089112636       0        0        0           0


admin@br1:~$ show interfaces bonding  eth5
eth5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 3c:ec:ef:b1:d0:77 brd ff:ff:ff:ff:ff:ff
    inet x.x.x.x/29 brd x.x.x.x.255 scope global eth5
       valid_lft forever preferred_lft forever
    inet6 x:x:4::230a/120 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::3eec:efff:feb1:d077/64 scope link
       valid_lft forever preferred_lft forever
    Description: Transit 

    RX:           bytes      packets  errors  dropped  overrun       mcast
          2150691179009   4917058979       0      259        0          64
    TX:           bytes      packets  errors  dropped  carrier  collisions
         18983901149707  14089244994       0        0        0           0

Details

Difficulty level
Easy (less than an hour)
Version
1.4-rolling-202212280917
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Related Objects

Mentioned In
1.3.3

Event Timeline

jestabro added a subscriber: jestabro.

The error is in the respective XML op-mode-definitions; arg '--intf-type' should be passed to 'show_interfaces.py' (1.3); 'interfaces.py' (1.4) so that tag node is correctly filtered.

jestabro changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).Jan 6 2023, 7:45 PM
jestabro changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
jestabro changed Issue type from Unspecified (please specify) to Bug (incorrect behavior).

Will push the backport for 1.3 as well.

@jestabro I've created the backport PR just now.

c-po triaged this task as Normal priority.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus (1.3.3) board.
c-po moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.