<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/etc/netplug/vyos-netplug-dhcp-client, branch current</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=current</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=current'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2025-06-28T21:16:52+00:00</updated>
<entry>
<title>T7591: remove copyright years from source files</title>
<updated>2025-06-28T21:16:52+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2025-06-28T18:51:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=1478516ae437f19ebeb7d6ff9b83dd74f8e76758'/>
<id>urn:sha1:1478516ae437f19ebeb7d6ff9b83dd74f8e76758</id>
<content type='text'>
The legal team says years are not necessary so we can go ahead with it, since
it will simplify backporting.

Automatically removed using: git ls-files | grep -v libvyosconfig | xargs sed -i -E \
's/^# Copyright (19|20)[0-9]{2}(-[0-9]{4})? VyOS maintainers.*/# Copyright VyOS maintainers and contributors &lt;maintainers@vyos.io&gt;/g'

In addition we will error-out during "make" if someone re-adds a legacy
copyright notice
</content>
</entry>
<entry>
<title>netplug: T7360: DHCPv6 address is not cleared when interface goes oper-down</title>
<updated>2025-04-14T19:26:47+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2025-04-14T19:26:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=588f2e02028bc3e0d1203c750c3cba56fb8291f2'/>
<id>urn:sha1:588f2e02028bc3e0d1203c750c3cba56fb8291f2</id>
<content type='text'>
When an interface goes down - e.g. cable unplugged - the DHCPv6 assigned IPv6
address is not removed from said interface. We should provide the same behavior
as with IPv4. IPv6 address should be removed and dhcpv6 client restarted once
the interface goes operational up again.
</content>
</entry>
<entry>
<title>netplug: T7353: bugfix DHCP client not stopped when interface goes down</title>
<updated>2025-04-14T18:24:56+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2025-04-13T05:25:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=97e74caa682298323165baa5055483405b740dac'/>
<id>urn:sha1:97e74caa682298323165baa5055483405b740dac</id>
<content type='text'>
The initial rewrite of vyos-netplug-dhcp-client by me tried to outsmart the
DHCP client implementation by re-using vyos.ifconfig.Interface(). This added
a regression where an interface loosing it's carrier no longer deconfigured
it's IP address. This was a change in behavior form VyOS 1.3.

In addition a bug is fixed as when a VLANs interface parent looses it's carrier
we now also stop the DHCP client process.

This script is now back to simply starting/stopping the DHCP client process.
</content>
</entry>
<entry>
<title>netplug: T7346: only call interface helpers if interface is not removed</title>
<updated>2025-04-10T15:09:04+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2025-04-10T15:06:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=2fcb128ea04e7e6c3f05b1b05bbc9fd3c541abb8'/>
<id>urn:sha1:2fcb128ea04e7e6c3f05b1b05bbc9fd3c541abb8</id>
<content type='text'>
When an interface is removed from the system also netplug is triggered. It
makes no sense to call vyos.ifconfig.Interface() and update it's configuration
when the interface was just recently removed.

This would in fact re-add an interface temporarily in it's worst case.
</content>
</entry>
<entry>
<title>T7182: use Config instead of ConfigTreeQuery for get_interface_dict</title>
<updated>2025-02-19T17:59:36+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2025-02-19T15:56:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=4a049c36bbc35564950b199daa11191d4093fb0d'/>
<id>urn:sha1:4a049c36bbc35564950b199daa11191d4093fb0d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T7182: normalize formatting</title>
<updated>2025-02-19T17:59:36+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2025-02-19T15:55:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=1316b470886c77e52905cdeabdb5aedd761a1555'/>
<id>urn:sha1:1316b470886c77e52905cdeabdb5aedd761a1555</id>
<content type='text'>
</content>
</entry>
<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>
