Page MenuHomeVyOS Platform

Replace vyos-netplug with a VyOS link state monitor service
On hold, NormalPublic

Description

There has been a desire to retire the aged vyos-netplug package in favor of an updated Python service to monitor link state. The simple design will wrap linux/netlink.h, linux/rtnetlink.h for use in a Python daemon to dispatch needed scripts upon changes in link state. This will in addition allow a cleaner integration with the proposed interface-monitor daemon (T3871).

Details

Difficulty level
Unknown (require assessment)
Version
vyos-1.4
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Event Timeline

jestabro changed the task status from Open to In progress.Sep 30 2021, 7:26 PM
jestabro triaged this task as Normal priority.
jestabro created this task.
jestabro created this object in space S1 VyOS Public.
c-po moved this task from Backlog to In Progress on the VyOS 1.4 Sagitta board.
jestabro changed the task status from In progress to On hold.EditedWed, May 15, 5:33 PM

This was a worthwhile investigation, with the goal of using Cython as a method of easily wrapping the standard netlink headers. Although workable, it appeared more trouble than it's worth, as one still has to cheat to navigate e.g. pass by reference (1), and limitations of Cython at the time (2). A much better approach would be a standard Python extension module ... set to 'on hold' for reference and until we have a plan for development, as has been recently discussed.

  1. https://github.com/jestabro/vyos-1x/blob/linkstate/src/services/vyos-link-monitor#L62-L67
  2. https://github.com/jestabro/vyos-1x/blob/linkstate/python/vyos/netlink/netlink.pxd#L62-L68