Page MenuHomeVyOS Platform

show interface command python error
Closed, ResolvedPublicBUG

Description

vyos@vyos:~$ show interface 
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/show_interfaces.py", line 304, in <module>
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
    args.vrrp
  File "/usr/libexec/vyos/op_mode/show_interfaces.py", line 224, in run_show_intf_brief
    descs = list(split_text(interface.get_alias(),0))
  File "/usr/libexec/vyos/op_mode/show_interfaces.py", line 98, in split_text
    for word in text.split():
AttributeError: 'NoneType' object has no attribute 'split'

Just a simple config:

vyos@vyos:~$ sh config
interfaces {
    ethernet eth0 {
        hw-id 90:e2:ba:99:91:cc
        vif 10 {
            address dhcp
        }
        vif 100 {
            address 192.168.1.1/24
        }
    }
    ethernet eth1 {
        hw-id 90:e2:ba:99:91:cd
    }
    loopback lo {
    }
}
nat {
    source {
        rule 10 {
            outbound-interface eth0.10
            translation {
                address masquerade
            }
        }
    }
}

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.4-rolling-202101130217
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)