summaryrefslogtreecommitdiff
path: root/src/op_mode/show_interfaces.py
AgeCommit message (Collapse)Author
2023-03-23op-mode: T5097: show interfaces should reflect cleared countersJohn Estabrook
'show interfaces counters' correctly displays counter stats after a call to 'clear interfaces counters', however, 'show interfaces detail' does not. Add missing update to counter stats.
2021-11-19http-api: T4003: fix output when no tty attached to stdout, e.g., apiJohn Estabrook
(cherry picked from commit 82ea3b4f3c12023ce17f1062785b6238f457673d)
2021-09-04op-mode: T3619: bugfix "show interfaces X detail"Christian Poessinger
Commit 27e53fbc ("op-mode: T3619: bugfix "show interfaces" for VLANs") fixed the op-mode command for the "show interfaces" operation, but if a user was interested in all the ethernet or bridge interfaces, the command "show interfaces <type> detail" did not yield any output. The filtered_interfaces() function was further generalized to only operate on base components and call itself recusively if required. (cherry picked from commit 5e1f76d16332a917bfd99c6f2bffcd73e61d934d)
2021-09-04op-mode: T3619: bugfix "show interfaces" for VLANsChristian Poessinger
Commit 31169fa8a7 ("vyos.ifconfig: T3619: only set offloading options if supported by NIC") always instantiated an object of the Ethtool class for an ethernet object - this is right as a real ethernet interface is managed by Ethtool. Unfortunately the script used for "show interface" determindes the "base class" for an interface by its name, so eth0 -> Ethernet, eth0.10 -> Ethernet. This assumption is incorrect as a VLAN interface can not have the physical parameters changed of its underlaying interface. This can only be done for eth0. There is no need for the op-mode script to determine the implementation class for an interface at this level, as we are only interested in the state of the interface and it's IP addresses - which is a common operation valid for every interface on VyOS. (cherry picked from commit 27e53fbcd843c3aad27db9e97f9060ae6dfcc5ee)
2021-09-04op-mode: import cleanup in "show interfaces" scriptChristian Poessinger
(cherry picked from commit 5bde11aceffd3d7fca99e582b16555fc0c584410)
2021-04-27op-mode: T2946: only call 'stty size' if in terminalJohn Estabrook
(cherry picked from commit e1563f9d175026488a36d52a6ffcfb6745d56644)
2020-11-06op-mode: T2731: fix "show interfaces" returns invalid state when link is downChristian Poessinger
There has been a miss-match of admin-down and oper-down status for the Python implementation of "show interfaces".
2020-07-21interfaces: T2658: Fix description lengthsever-sever
2020-06-20op-mode: T2621: fix repeated interface descriptionChristian Poessinger
2020-06-15ifconfig: T2599: sort interface by natural orderThomas Mangin
2020-05-18flake8: T2475: fix a number of issue reported by flake8Thomas Mangin
2020-04-23pppoe: T2223: report the state of pppoe intfThomas Mangin
2020-04-14op_mode: T2223: two cosmetic change and bug fixThomas Mangin
2020-04-14op_mode: T2223 python version of show_interfacesThomas Mangin