Page MenuHomeVyOS Platform

Rewrite vyatta_net_name/vyatta_interface_rescan in Python
Closed, ResolvedPublic


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.


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
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.Sep 27 2021, 8:10 PM
jestabro triaged this task as Normal priority.
jestabro created this task.
jestabro created this object in space S1 VyOS Public.

In testing:
The following removes legacy code: vyatta_net_name, vyatta_interface_rescan, XorpConfigParser

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