Age | Commit message (Collapse) | Author | |
---|---|---|---|
2025-01-07 | vyos.ifconfig: T7018: drop 'iftype' class attribute (#4280) | Christian Breunig | |
Under very rare cases we can run into a race condition where interfaces are still in creation phase but are already referenced.. This can trigger: File "/usr/libexec/vyos/conf_mode/system_conntrack.py", line 270, in <module> apply(c) File "/usr/libexec/vyos/conf_mode/system_conntrack.py", line 249, in apply call_dependents() File "/usr/lib/python3/dist-packages/vyos/configdep.py", line 147, in call_dependents f() File "/usr/lib/python3/dist-packages/vyos/configdep.py", line 118, in func_impl run_config_mode_script(script, config) File "/usr/lib/python3/dist-packages/vyos/configdep.py", line 106, in run_config_mode_script mod.verify(c) File "/usr/libexec/vyos//conf_mode/service_conntrack-sync.py", line 72, in verify if len(get_ipv4(interface)) < 1: ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/vyos/template.py", line 458, in get_ipv4 return Interface(interface).get_addr_v4() ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 334, in __init__ if not self.iftype: ^^^^^^^^^^^ AttributeError: 'Interface' object has no attribute 'iftype' This commit removes the code path in question and the class attribute check. The reason for the iftype attribute in the past was a common _create() method serving for all interface types. As we already have a lot of derived implementations and not all honor the classes iftype/type member - or even worse honor it only in 50% of the occurrences it's time to drop it. | |||
2024-10-17 | T4583: Rewrite VRRP op-mode to vyos.opmode format | khramshinr | |
reformat file by linter rules | |||
2024-10-17 | T4583: Rewrite VRRP op-mode to vyos.opmode format | khramshinr | |
2024-04-03 | T6199: drop unused Python imports | Christian Breunig | |
found using "git ls-files *.py | xargs pylint | grep W0611" | |||
2023-07-15 | T5195: vyos.util -> vyos.utils package refactoring part #2 | Christian Breunig | |
2021-09-21 | vrrp: keepalived: T3847: migrate to get_config_dict() | Christian Poessinger | |
2021-09-21 | vrrp: keepalived: T616: move configuration to volatile /run directory | Christian Poessinger | |
Move keepalived configuration from /etc/keepalived to /run/keepalived. | |||
2021-07-13 | T3663: use inotify-based watching in "show vrrp". | Daniil Baturin | |
2020-09-19 | ifconfig: T2653: convert VLAN interfaces do discrete class | Christian Poessinger | |
Instead of using an Adapter pattern to make interfaces VLAN-aware, create a derived class named VLANIf to represent a VLAN. This change was necessary to eliminate mixed code in Interfaces class which was VLAN - free, but recently gained some VLAN specific code for set_admin_state(). In addition this "autoresolves" the issue in T2894 as a bond vlan interface will no longer change the lower interface. | |||
2020-08-20 | VRRP: T2761: Extend "show vrrp" op-mode command with router priority | erkin | |
2020-06-25 | T2487: add an exception for the case when VRRP stats aren't available. | Daniil Baturin | |
2020-04-21 | vrrp: T2331: fix show vrrp | Thomas Mangin | |
2020-04-14 | vrrp: T2223: move VRRP within ifconfig | Thomas Mangin | |
Tidied up the code and moved it under VRRP in view to use with show-interface (which has VRRP filtering) No change in functionality |