<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/etc/dhcp/dhclient-exit-hooks.d/99-ipsec-dhclient-hook, 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>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>T5872: fix ipsec dhclient hook uses "exit" instead of "return"</title>
<updated>2024-04-12T16:34:13+00:00</updated>
<author>
<name>Lucas Christian</name>
<email>lucas@lucasec.com</email>
</author>
<published>2024-04-12T16:34:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=840ab82e8821624aae589dec1ea86cefbcf866b7'/>
<id>urn:sha1:840ab82e8821624aae589dec1ea86cefbcf866b7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5872: re-write exit hook to always regenerate config</title>
<updated>2024-03-12T06:08:40+00:00</updated>
<author>
<name>Lucas Christian</name>
<email>lucas@lucasec.com</email>
</author>
<published>2024-03-10T18:39:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=679b78356cbda4de15f96a7f22d4a98037dbeea4'/>
<id>urn:sha1:679b78356cbda4de15f96a7f22d4a98037dbeea4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5872: further fixes to ipsec dhcp exit hook</title>
<updated>2024-03-10T18:40:23+00:00</updated>
<author>
<name>Lucas Christian</name>
<email>lucas@lucasec.com</email>
</author>
<published>2024-02-10T19:26:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=92012a0b3db8e93b10db4137414073f0371ed8cc'/>
<id>urn:sha1:92012a0b3db8e93b10db4137414073f0371ed8cc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5872: fix ipsec dhclient exit hook</title>
<updated>2024-03-10T18:40:23+00:00</updated>
<author>
<name>Lucas Christian</name>
<email>lucas@lucasec.com</email>
</author>
<published>2024-02-09T06:04:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=cd8ef21f280f726955f537132e3fab2bcb3c286f'/>
<id>urn:sha1:cd8ef21f280f726955f537132e3fab2bcb3c286f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T4856: Fix IPsec DHCP-client exit hook</title>
<updated>2024-01-14T22:32:14+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2024-01-14T22:32:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=a9cf7246d4450c8b3e1b749b36c3393b0963404b'/>
<id>urn:sha1:a9cf7246d4450c8b3e1b749b36c3393b0963404b</id>
<content type='text'>
The script acually does not have the variable `secrets_lines` and
secret lines itself does not have the  marker `# dhcp:{interface}`
in `to_find`

Needs to rewrite this script in the future if it is required

This commit fixes DHCP-client exit hook:
```
dhclient[6800]: NameError: name 'secrets_lines' is not defined
root[6801]: /etc/dhcp/dhclient-exit-hooks.d/99-ipsec-dhclient-hook returned non-zero exit status 1
```
</content>
</entry>
<entry>
<title>T5195: vyos.util -&gt; vyos.utils package refactoring (#2093)</title>
<updated>2023-07-14T20:18:36+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-07-14T20:18:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=d1ca536da448749dff557f13ecae97b124026e96'/>
<id>urn:sha1:d1ca536da448749dff557f13ecae97b124026e96</id>
<content type='text'>
* T5195: move run, cmd, call, rc_cmd helper to vyos.utils.process

* T5195: use read_file and write_file implementation from vyos.utils.file

Changed code automatically using:

find . -type f -not -path '*/\.*' -exec sed -i 's/^from vyos.util import read_file$/from vyos.utils.file import read_file/g' {} +
find . -type f -not -path '*/\.*' -exec sed -i 's/^from vyos.util import write_file$/from vyos.utils.file import write_file/g' {} +

* T5195: move chmod* helpers to vyos.utils.permission

* T5195: use colon_separated_to_dict from vyos.utils.dict

* T5195: move is_systemd_service_* to vyos.utils.process

* T5195: fix boot issues with missing imports

* T5195: move dict_search_* helpers to vyos.utils.dict

* T5195: move network helpers to vyos.utils.network

* T5195: move commit_* helpers to vyos.utils.commit

* T5195: move user I/O helpers to vyos.utils.io</content>
</entry>
<entry>
<title>dhclient: T5358: Use return in 99-ipsec-dhclient-hook</title>
<updated>2023-07-14T15:30:32+00:00</updated>
<author>
<name>Darin Kuo</name>
<email>darinkuo@gmail.com</email>
</author>
<published>2023-07-14T02:24:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=5b67c9266c334186dd567cb453f05b6f8528aaf4'/>
<id>urn:sha1:5b67c9266c334186dd567cb453f05b6f8528aaf4</id>
<content type='text'>
Use return instead of exit in 99-dhclient-exit-hook to allow subsequent unnumbered hooks to run (like rfc3442-classless-routes). Hooks are sourced, not executed.
</content>
</entry>
<entry>
<title>T5141: Add numbers for dhclient-exit-hooks.d to enforce order</title>
<updated>2023-04-03T11:41:47+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2023-04-03T11:41:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=1a1f425f869f94c7c7a9d57b71555e9e13796c9e'/>
<id>urn:sha1:1a1f425f869f94c7c7a9d57b71555e9e13796c9e</id>
<content type='text'>
Add numbers for all dhclient-exit-hooks.d to enforce script order execution
Also, move '99-run-user-hooks' to '98-run-user-hooks' due to
vyatta-dhclient-hook bug and exit with 'exit 1' it is
described in the https://vyos.dev/T4856, so we should move this hook
to the end. Rename 'vyatta-dhclient-hook' to '99-vyatta-dhclient-hook'
</content>
</entry>
</feed>
