<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/op_mode/show_dhcp.py, 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>2022-12-23T16:36:34+00:00</updated>
<entry>
<title>dhcp: T4758: implement missing functionality from old script to new op-mode script</title>
<updated>2022-12-23T16:36:34+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-12-23T16:31:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=1f1915fca2734d47e2df653ef10bc14fbce74173'/>
<id>urn:sha1:1f1915fca2734d47e2df653ef10bc14fbce74173</id>
<content type='text'>
Sorting DHCP pools and filtering for state can now be done using the new op-mode
mode scripts in DHCP. This allows us to drop the old helpers show_dhcp.py and
show_dhcpv6.py.
</content>
</entry>
<entry>
<title>vyos.base: use Warning() helper for op-mode commands</title>
<updated>2022-04-16T21:28:30+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-04-16T21:25:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=fe0551a8a51da50b78587b808436840934e7bd23'/>
<id>urn:sha1:fe0551a8a51da50b78587b808436840934e7bd23</id>
<content type='text'>
</content>
</entry>
<entry>
<title>op-mode: T1376: speed up tab-completion for DHCP pool listing</title>
<updated>2021-09-02T12:05:33+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-09-02T12:05:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=b1ff7baaf3c52c8c364955632fcece2da7033b10'/>
<id>urn:sha1:b1ff7baaf3c52c8c364955632fcece2da7033b10</id>
<content type='text'>
Commit 9f20bee81c ("T1376: improve show_dhcp and show_dhcpv6") added the tab
completion helper to list the availbale IP pools to query. This was done by
calling a python script which then called cli-shell-api which resulted in a
penalty by the Python interpreter startup.

This can be solved by directly using the cli-shell-api wrapper available
as &lt;path&gt; in op-mode - as also seen for DHCPv6.
</content>
</entry>
<entry>
<title>vyos.util: drop custom implementations in favor of is_systemd_service_running()</title>
<updated>2021-07-30T18:19:10+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-07-30T18:19:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=ec713e585ace09beb9942d928e0099a35dcdd0f2'/>
<id>urn:sha1:ec713e585ace09beb9942d928e0099a35dcdd0f2</id>
<content type='text'>
Commit f520182b ("vyos.util: add is_systemd_service_running() helper function")
added a new helper function that can be used to check if a systemd service is
running.

Drop all custom implementations in favor of this library call.
</content>
</entry>
<entry>
<title>dhcp-server: T2717: Fix DHCP pool size in statistics</title>
<updated>2020-07-20T14:02:26+00:00</updated>
<author>
<name>Robert Schindler</name>
<email>r.schindler@efficiosoft.com</email>
</author>
<published>2020-07-20T14:02:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=452701bef32c07e0c2a49d37fac93a94038dace1'/>
<id>urn:sha1:452701bef32c07e0c2a49d37fac93a94038dace1</id>
<content type='text'>
The calculated size of DHCP server address pools was not corrent. The
fact that both boundaries of address ranges are inclusive wasn't
accounted for, so the calculated size was too small by 1 address
per range.
</content>
</entry>
<entry>
<title>op-mode: dhcp: T2316: bugfix TypeError</title>
<updated>2020-04-20T18:07:17+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2020-04-20T18:07:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=f23b73fdd35551960dc958cd42c953fcf52a0e75'/>
<id>urn:sha1:f23b73fdd35551960dc958cd42c953fcf52a0e75</id>
<content type='text'>
Commit d4b1bc0b ("op-mode: dhcp/dhcpv6: T2268: prettify output for invalid
input") uses a different API which caused a TypeError.

TypeError: get_leases() missing 1 required positional argument: 'leases'
</content>
</entry>
<entry>
<title>op-mode: dhcp/dhcpv6: T2268: prettify output for invalid input</title>
<updated>2020-04-18T14:40:39+00:00</updated>
<author>
<name>Jernej Jakob</name>
<email>jernej.jakob@gmail.com</email>
</author>
<published>2020-04-18T14:23:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=d4b1bc0b55158c45d3c79b3678ccbb1203598937'/>
<id>urn:sha1:d4b1bc0b55158c45d3c79b3678ccbb1203598937</id>
<content type='text'>
</content>
</entry>
<entry>
<title>op-mode: T2185: adjust dhcpv4/v6 systemd service name</title>
<updated>2020-04-13T18:32:23+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2020-04-13T18:32:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=7a2903342c454e23520fe2800d58dcae94305e6d'/>
<id>urn:sha1:7a2903342c454e23520fe2800d58dcae94305e6d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>util: T2226: os.system was wrongly converted to run</title>
<updated>2020-04-09T18:08:24+00:00</updated>
<author>
<name>Thomas Mangin</name>
<email>thomas.mangin@exa.net.uk</email>
</author>
<published>2020-04-09T18:08:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=9875a21bdb26df19f2faf3e81153dea15e4f9e3c'/>
<id>urn:sha1:9875a21bdb26df19f2faf3e81153dea15e4f9e3c</id>
<content type='text'>
os.system does print the ouput of the command, run() does not.
A new function called call() does the printing and return the error code.</content>
</entry>
<entry>
<title>util: T2226: covert most calls from os.system to util</title>
<updated>2020-04-06T19:22:35+00:00</updated>
<author>
<name>Thomas Mangin</name>
<email>thomas.mangin@exa.net.uk</email>
</author>
<published>2020-04-05T13:36:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=aceb0817a65bf01669cada3ceb60d65b81607bc3'/>
<id>urn:sha1:aceb0817a65bf01669cada3ceb60d65b81607bc3</id>
<content type='text'>
As little change a possible but the function call
The behaviour should be totally unchanged.
</content>
</entry>
</feed>
