Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Sort links before fetching sysfs link infos
When fetching link info from sysfs, `os.listdir(path)` returns entries in arbitrary order, which can cause intermittent errors when a VLAN device appears before its parent. This leads to a "no such interface exists" error on repeated configuration application. Sorting the list before processing ensures deterministic behavior, making it consistent and more predictable given the VLAN's device name. Signed-off-by: Wen Liang <[email protected]>
- Loading branch information