Page MenuHomeVyOS Platform

Rewrite vyatta_net_name/vyatta_interface_rescan in Python
Closed, ResolvedPublic

Description

This will be a literal rewrite of the legacy Perl code responsible for processing udev net events into config file entries (interface -> hw-id). The goals are:

  1. Drop legacy Perl code, and notably, the use of XorpConfigParser; the latter has been removed but for these remaining scripts.
  2. Provide a base line for investigation of the issue of unexpected interface reordering (T3871), and a wrapper within which to test solutions.
  3. Keep the rewrite as conservative as possible, as it should act as a transition to an interface-monitor daemon (2), and soon be replaced.

Details

Version
vyos-1.4
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Internal change (not visible to end users)

Event Timeline

jestabro changed the task status from Open to In progress.
jestabro triaged this task as Normal priority.
jestabro created this object in space S1 VyOS Public.

In testing:
https://github.com/vyos/vyos-1x/compare/current...jestabro:interface-names
https://github.com/vyos/vyatta-cfg/compare/current...jestabro:interface-names
The following removes legacy code: vyatta_net_name, vyatta_interface_rescan, XorpConfigParser
https://github.com/vyos/vyatta-cfg-system/compare/current...jestabro:interface-names

Known issues:
The legacy tool biosdevname (vyatta-biosdevname) throws a (caught) error, and likely has for a long time: errors were hidden in vyatta_net_name by redirection of stderr to /dev/null. We likely have no use for this specific tool going forward.

jestabro changed the task status from In progress to Needs testing.Sep 27 2021, 9:07 PM
jestabro moved this task from Open to Backport Candidates on the VyOS 1.4 Sagitta board.