<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/etc/netplug/vyos-netplug-dhcp-client, branch sever-sever-patch-1</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/vyos/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-1x.git/atom?h=sever-sever-patch-1</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=sever-sever-patch-1'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2025-02-08T12:46:05+00:00</updated>
<entry>
<title>netplug: T5103: only execute helper scripts on physical interfaces</title>
<updated>2025-02-08T12:46:05+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2025-02-08T10:33:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=8faf67c1fab0eced732cf414d02a6c8d7affc626'/>
<id>urn:sha1:8faf67c1fab0eced732cf414d02a6c8d7affc626</id>
<content type='text'>
Helper scripts should only work on physical interfaces not on individual
sub-interfaces. Moving e.g. a VLAN interface in/out a VRF will also trigger
this script which should be prohibited - bail out early
</content>
</entry>
<entry>
<title>netplug: T5476: rewrite dhclient helper from Perl -&gt; Python</title>
<updated>2023-08-16T11:22:14+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-08-15T10:42:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=1ab8166a5481c184ded9abf8da48dd0d391c8ae3'/>
<id>urn:sha1:1ab8166a5481c184ded9abf8da48dd0d391c8ae3</id>
<content type='text'>
There are two hooks called for bridge, ethernet and bond interfaces if the
link-state changes up -&gt; down or down -&gt; up.

The helpers are:
* /etc/netplug/linkdown.d/dhclient
* /etc/netplug/linkup.d/dhclient

As those helpers use Linux actions to start/restart the dhclient process in
Perl it's time to rewrite it. First goal is to get rid of all Perl code and the
second is that we now have a Proper Python library. Instead of checking if the
process is running the then restarting it without even systemd noticing
(yeah we might get two processes beeing alive) we should:

* Add a Python helper that can be used for both up and down (see man 8 netplugd
  FILES section)
* Query the VyOS CLI config if the interface in question has DHCP(v6)
  configured and is not disabled
* Add IPv6 DHCPv6 support

MAN page: https://linux.die.net/man/8/netplugd
</content>
</entry>
</feed>
