summaryrefslogtreecommitdiff
path: root/src/op_mode/interfaces.py
AgeCommit message (Collapse)Author
2026-06-29ci: T8490: fix typos in comments, strings, and local identifiersYuriy Andamasov
Reaches a clean typos baseline for the T8490 ruleset pilot. Categories: - Comments/docs: recursivly, taret, passsed, characted, arhive, AtrributeError; "ned" -> "new" (migration comments). - Messages/strings: writeable -> writable (x5); OCaml log "Commandis" -> "Command is". - Local variables (all refs in-function): commited, formating, presistent; inpt_range -> input_range; tz_datas -> tz_data_raw (avoids the tz_data collision). - Self-contained renames (definition + all references in-file): formated_stats, _get_formatted_output_conections -> ..._connections, expension_failure -> expansion_failure (ping + traceroute), snmpd_restart_reqired -> ..._required. False positives are allowlisted centrally (vyos/.github, separate PR), NOT changed here: mke2fs, Maya-calendar "Mak", RFC 4122 "IDentifier" (hostapd), and VPP's "U-Forwrd" bridge-domain column header (op_mode/vpp.py + the VPP smoketest assert the real upstream `vppctl` output). Verified: typos clean, py_compile of every edited .py, zero remaining old-identifier references. 🤖 Generated by [robots](https://vyos.io)
2026-01-22T8154: make catch_broken_pipe decorator to common vyos.utils.io functionChristian Breunig
This adds the capability to make it re-usable in other code paths.
2025-09-16op-mode: T7746: Fix 'show interfaces' description wrappingl0crian1
- Fixed incorrect wrapping of 'show interfaces' description
2025-08-29op-mode: T7764: Add 'vlan-to-vni statistics' op-mode commandl0crian1
2025-08-26T7742: Add 'show interfaces kernel statistics' commandl0crian1
- Added 'show interfaces kernel statistics' command - Added 'show interfaces kernel <interface> statistics' command
2025-08-24T7741: Fixes for 'show interfaces kernel'l0crian1
- Added dict_set_nested helper to set a value in a nested dictionary - Modified get_interface_vrf to accept string or dict as argument - Simplified logic using new helper functions
2025-08-21Merge branch 'kernel-updates' of https://github.com/l0crian1/vyos-1x into ↵l0crian1
kernel-updates
2025-08-21T7741: Fixes for 'show interfaces kernel'l0crian1
- Moved is_interface_has_mac outside of _get_summary_data - Updated MAC definition in _format_kernel_data to use is_interface_has_mac
2025-08-20Update src/op_mode/interfaces.pyl0crian1
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-20op-mode: T7741: Fixes for 'show interfaces kernel'l0crian1
Fixes for the following: - Tunnel interfaces report an IP address in the field where a MAC is expected - Podman created veth interfaces list it's parent network as a VRF instead of the actual VRF. - Long descriptions should wrap - Non useful interfaces shouldn't be shown.
2025-08-07T7687: Add op-mode for VLAN-to-VNI mappingl0crian1
- Added op-mode commands for VLAN-to-VNI mappings - Commands added: - show interfaces vxlan <interface> vlan-to-vni - show interfaces vxlan <interface> vlan-to-vni detail - show interfaces vxlan <interface> vlan-to-vni vlan <vlan-id> - show interfaces vxlan <interface> vlan-to-vni vlan <vlan-id> detail
2025-07-24pylint: T7648: disable some linter-checks hit by GitHub action pipelineChristian Breunig
Running pylint --errors-only ... ************* Module interfaces src/op_mode/interfaces.py:42:54: E1101: Instance of '_IO' has no 'fileno' member (no-member) ************* Module show_techsupport_report src/op_mode/show_techsupport_report.py:62:50: E1101: Instance of '_IO' has no 'fileno' member (no-member)
2025-06-28T7591: remove copyright years from source filesChristian Breunig
The legal team says years are not necessary so we can go ahead with it, since it will simplify backporting. Automatically removed using: git ls-files | grep -v libvyosconfig | xargs sed -i -E \ 's/^# Copyright (19|20)[0-9]{2}(-[0-9]{4})? VyOS maintainers.*/# Copyright VyOS maintainers and contributors <maintainers@vyos.io>/g' In addition we will error-out during "make" if someone re-adds a legacy copyright notice
2025-04-29interfaces: T7268: Add op-mode command for show all interfaces on system l0crian1
Commiting suggestions from dmbaturin Co-authored-by: Daniil Baturin <daniil@baturin.org>
2025-04-20t7268: Add op-mode command for show all interfaces on systeml0crian1
lo address was an edge case and needed to be handled.
2025-04-20t7268: Add op-mode command for show all interfaces on systeml0crian1
Created op-mode script per request Commands added: show interfaces kernel show interfaces kernel detail show interfaces kernel json show interfaces kernel <interface> show interfaces kernel <interface> detail show interfaces kernel <interface> json
2024-07-22T6587: Raise an error when trying to get information about network ↵khramshinr
interfaces that don't exist
2024-07-22T6589: Return a dict when querying information about a single interfacekhramshinr
2023-11-17T5749: Swap show interfaces and show interfaces summaryViacheslav Hletenko
By default show VRF, MAC, MTU for `show interfaces` The original `show interfaces` moved to `show interfacces summary`
2023-11-16T5747: op-mode add MAC and MTU for show interfaces summaryViacheslav Hletenko
Add op-mode "show interfaces summary" Add MAC, VRF and MTU options: vyos@r4# run show interfaces summary Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down Interface IP Address MAC VRF MTU S/L Description ----------- ----------------- ----------------- ------- ----- ----- ------------- dum0 203.0.113.1/32 96:44:ad:c5:a1:a5 default 1500 u/u eth0 192.168.122.14/24 52:54:00:f1:fd:77 default 1500 u/u WAN eth1 192.0.2.1/24 52:54:00:04:33:2b foo 1500 u/u LAN-eth1 eth2 - 52:54:00:40:2e:af default 1504 u/u LAN-eth2 eth3 - 52:54:00:09:a4:b4 default 1500 A/D
2023-07-14T5195: vyos.util -> vyos.utils package refactoring (#2093)Christian Breunig
* T5195: move run, cmd, call, rc_cmd helper to vyos.utils.process * T5195: use read_file and write_file implementation from vyos.utils.file Changed code automatically using: find . -type f -not -path '*/\.*' -exec sed -i 's/^from vyos.util import read_file$/from vyos.utils.file import read_file/g' {} + find . -type f -not -path '*/\.*' -exec sed -i 's/^from vyos.util import write_file$/from vyos.utils.file import write_file/g' {} + * T5195: move chmod* helpers to vyos.utils.permission * T5195: use colon_separated_to_dict from vyos.utils.dict * T5195: move is_systemd_service_* to vyos.utils.process * T5195: fix boot issues with missing imports * T5195: move dict_search_* helpers to vyos.utils.dict * T5195: move network helpers to vyos.utils.network * T5195: move commit_* helpers to vyos.utils.commit * T5195: move user I/O helpers to vyos.utils.io
2023-05-11T5158: Refactoring the commad '$ sh interfaces counters'mkorobeinikov
For more detailed information it's necessary to add information about drops and error counters.
2023-03-28interfaces: T4885: add clear/reset_counters to op-mode scriptJohn Estabrook
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.
2022-12-21interfaces: T4866: add standardized op-mode interfaces.pyJohn Estabrook