<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/systemd/dhclient@.service, branch mergify/bp/circinus/pr-4077</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=mergify%2Fbp%2Fcircinus%2Fpr-4077</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=mergify%2Fbp%2Fcircinus%2Fpr-4077'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2024-03-28T06:36:22+00:00</updated>
<entry>
<title>op-mode: T6175: "renew dhcp interface &lt;name&gt;" does not check for DHCP interface</title>
<updated>2024-03-28T06:36:22+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-03-28T06:36:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=7dbaa25a199a781aaa9f269741547e576410cb11'/>
<id>urn:sha1:7dbaa25a199a781aaa9f269741547e576410cb11</id>
<content type='text'>
The current op-mode script simply calls sudo systemctl restart "dhclient@$4.service"
with no additional information about a client interface at all.

This results in useless dhclient processes
root  47812  4.7  0.0   5848  3584 ?  Ss 00:30   0:00 /sbin/dhclient -4 -d
root  48121  0.0  0.0   4188  3072 ?  S  00:30   0:00  \_ /bin/sh /sbin/dhclient-script
root  48148 50.0  0.2  18776 11264 ?  R  00:30   0:00      \_ python3 -

Which also assign client leases to all local interfaces, if we receive one
valid DHCPOFFER

vyos@vyos:~$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface    IP Address         MAC                VRF        MTU  S/L    Description
-----------  -----------------  -----------------  -------  -----  -----  -------------
eth0         -                  00:50:56:bf:c5:6d  default   1500  u/u
eth0.10      172.16.33.102/24   00:50:56:bf:c5:6d  default   1500  u/u
eth1         172.16.33.131/24   00:50:56:b3:38:c5  default   1500  u/u

172.16.33.102/24 and 172.16.33.131/24 are stray DHCP addresses.

This commit moved the renew command to the DHCP op-mode script to properly
validate if the interface we request a renew for, has actually a dhcp address
configured. In additional this exposes the renew feature to the API.
</content>
</entry>
<entry>
<title>dhcp: T5428: always release lease from default VRF</title>
<updated>2023-08-07T21:05:12+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-08-07T20:53:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=9afcea251bdc895ffd49cb11f455fd636fdf817b'/>
<id>urn:sha1:9afcea251bdc895ffd49cb11f455fd636fdf817b</id>
<content type='text'>
Otherwise packet can be received in a VRF that was already deleted.
Image of the following CLI commands:

del interface ethernet eth0 address dhcp
del interface ethernet eth0 vrf red
del vrf name red

VRF could be deleted even if dhclient release was not yet completely
processed.
</content>
</entry>
<entry>
<title>dhcp: T5428: client renewal fails when running inside VRF</title>
<updated>2023-08-04T18:13:29+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-08-04T18:13:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=782e400d6f276a8a4ee51c92f02e01e7695f55fb'/>
<id>urn:sha1:782e400d6f276a8a4ee51c92f02e01e7695f55fb</id>
<content type='text'>
vyos@vyos# run show vrf MGMT processes
 2282  sshd

There is no dhclient process running in given VRF. dhclient complains it can
not send out packets via the given interface (as it's not bound to that VRF)

Aug 02 20:29:54 dhclient[1686]: send_packet: Network is unreachable
Aug 02 20:29:54 dhclient[1686]: send_packet: please consult README file regarding broadcast address.
Aug 02 20:29:54 dhclient[1686]: dhclient.c:3001: Failed to send 300 byte long packet over fallback interface.
</content>
</entry>
<entry>
<title>dhclient: T5003: start daemon in foreground mode</title>
<updated>2023-08-02T20:05:58+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-08-02T20:05:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=1dba4d088eba86854d8db8536eba36a5830e62c4'/>
<id>urn:sha1:1dba4d088eba86854d8db8536eba36a5830e62c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dhclient: T5003: improve VRF bound client startup</title>
<updated>2023-08-02T20:03:49+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-08-02T20:03:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=6a100233536f357ab3d45e55b9c0ecb52bd69c47'/>
<id>urn:sha1:6a100233536f357ab3d45e55b9c0ecb52bd69c47</id>
<content type='text'>
When booting a system with DHCP clients running inside a VRF we require multiple
restarts - prevent systemd from putting the service into a "failed" state.
</content>
</entry>
<entry>
<title>dhclient: T2393: fix "Failed to parse boolean value, ignoring: SIGKILL"</title>
<updated>2022-07-04T18:25:15+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-07-04T18:25:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=9483b28a8cf811b9ac03c0bb86083deec8a218ad'/>
<id>urn:sha1:9483b28a8cf811b9ac03c0bb86083deec8a218ad</id>
<content type='text'>
Commit 19789463 ("dhclient: T2393: introduce 20 seconds stop timeout - required
for smoketesting on Qemu") assigned a string to a boolean field. This has been
fixed.
</content>
</entry>
<entry>
<title>dhclient: T2393: introduce 20 seconds stop timeout - required for smoketesting on Qemu</title>
<updated>2022-06-16T07:33:22+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-06-16T07:33:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=1978946312a36f4913e1e5ea7754668b1c653d09'/>
<id>urn:sha1:1978946312a36f4913e1e5ea7754668b1c653d09</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dhclient: T2393: switch to old configuration path to keep existing op-mode tolls intact</title>
<updated>2020-04-29T13:12:04+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2020-04-29T13:06:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=af87333fe4164c9d37f8d21d50dd4e164378c709'/>
<id>urn:sha1:af87333fe4164c9d37f8d21d50dd4e164378c709</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dhclient: T2393: remove intermediate _DHCP helper class</title>
<updated>2020-04-28T18:43:15+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2020-04-28T18:43:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=fc3ceac0160db30d49d9b8bb2417934c9b399db4'/>
<id>urn:sha1:fc3ceac0160db30d49d9b8bb2417934c9b399db4</id>
<content type='text'>
The intermedite class only held the path to the configuration files - thus
its existence was doubtworthy. For better readability and a clean
inheritance graph that class has been dropped.
</content>
</entry>
<entry>
<title>dhclient6: T2393: T2394: migrate from SysVinit to systemd</title>
<updated>2020-04-28T18:15:37+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2020-04-28T18:05:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=3e7b8515cafb6f6e015c765021ecd38203d87a4d'/>
<id>urn:sha1:3e7b8515cafb6f6e015c765021ecd38203d87a4d</id>
<content type='text'>
</content>
</entry>
</feed>
