<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/op-mode-definitions/dhcp.xml.in, branch feature/T9082-codeql-cpp</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=feature%2FT9082-codeql-cpp</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2026-05-29T21:25:03+00:00</updated>
<entry>
<title>dhcpv6: T8941: Support filter/sorting combination on DHCPv6 server leases</title>
<updated>2026-05-29T21:25:03+00:00</updated>
<author>
<name>Indrajit Raychaudhuri</name>
<email>irc@indrajit.com</email>
</author>
<published>2026-05-29T05:30:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=87ce309c85d8b20ea8383d00595bca27aad1f824'/>
<id>urn:sha1:87ce309c85d8b20ea8383d00595bca27aad1f824</id>
<content type='text'>
Also add `hostname` as sort key for DHCPv6 leases,
and fix a typo in the completion help for DHCPv6 leases
sorting.
</content>
</entry>
<entry>
<title>dhcpv4: T8941: Support filter/sorting combination on DHCPv4 server leases</title>
<updated>2026-05-29T21:25:03+00:00</updated>
<author>
<name>Indrajit Raychaudhuri</name>
<email>irc@indrajit.com</email>
</author>
<published>2026-04-14T08:46:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=845f53098d4b6fcb49519577df4e79d6849a9cc8'/>
<id>urn:sha1:845f53098d4b6fcb49519577df4e79d6849a9cc8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>kea: T6211: add VRF support for KEA dhcp server</title>
<updated>2025-08-15T07:31:49+00:00</updated>
<author>
<name>David Vølker</name>
<email>david@voelker.dk</email>
</author>
<published>2025-08-15T07:31:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=974f9a5d5e13241e2b4ea54152bf835db6b7feff'/>
<id>urn:sha1:974f9a5d5e13241e2b4ea54152bf835db6b7feff</id>
<content type='text'>
</content>
</entry>
<entry>
<title>op-mode: T7459: eliminate direct use of sudo in op mode commands</title>
<updated>2025-05-16T11:39:44+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2025-05-16T11:39:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=6b562aae240927c14f629b9307583013bc3a9008'/>
<id>urn:sha1:6b562aae240927c14f629b9307583013bc3a9008</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dhcp: T7052: Rename and simplify functions for consistency</title>
<updated>2025-01-17T04:42:12+00:00</updated>
<author>
<name>Indrajit Raychaudhuri</name>
<email>irc@indrajit.com</email>
</author>
<published>2025-01-16T05:47:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=a31d5b661bf2d37c72a21e434d8ce16b22a597b9'/>
<id>urn:sha1:a31d5b661bf2d37c72a21e434d8ce16b22a597b9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dhcp_server: T6852: Add op mode command "show dhcpv6 server statistics"</title>
<updated>2024-11-05T14:41:26+00:00</updated>
<author>
<name>Nataliia Solomko</name>
<email>natalirs1985@gmail.com</email>
</author>
<published>2024-11-05T14:41:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=1bd594c22c7a51d2b92e237df2294a6c2f7b37c8'/>
<id>urn:sha1:1bd594c22c7a51d2b92e237df2294a6c2f7b37c8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>op-mode: T6577: create generic service restart helper to work with the API</title>
<updated>2024-07-16T19:29:39+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-07-16T19:28:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=c74ae852152b0c3c3f00a1847d081d28f500e178'/>
<id>urn:sha1:c74ae852152b0c3c3f00a1847d081d28f500e178</id>
<content type='text'>
Right now we have multiple restart helpers (e.g. dhcp server, ssh, ntp) that
all do the same (more or less):

* Check if service is configured on CLI
* Restart if configured
* Error out if unconfigured

This is not available via the op-mode API. Create a new restart.py op-mode
helper that takes the service name and possible VRF as argument so it's also
exposed via API.
</content>
</entry>
<entry>
<title>op-mode: T6524: rewrite "release dhcp(v6) interface" to new op-mode format</title>
<updated>2024-06-27T19:34:14+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-06-27T19:34:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=5ade35255b3d8438aa6082fe56ae459d50cdc0a5'/>
<id>urn:sha1:5ade35255b3d8438aa6082fe56ae459d50cdc0a5</id>
<content type='text'>
</content>
</entry>
<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: T6102: Fix clear DHCP lease op-mode</title>
<updated>2024-03-06T20:53:46+00:00</updated>
<author>
<name>sarthurdev</name>
<email>965089+sarthurdev@users.noreply.github.com</email>
</author>
<published>2024-03-06T20:53:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=c55140f8bbd8e8f0e7c112a419027b65d479add6'/>
<id>urn:sha1:c55140f8bbd8e8f0e7c112a419027b65d479add6</id>
<content type='text'>
* Add `clear dhcpv6-server lease`
* Standardize using vyos.opmode
</content>
</entry>
</feed>
