<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/etc/dhcp, branch vyos/1.4dev1</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=vyos%2F1.4dev1</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=vyos%2F1.4dev1'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2023-08-05T09:01:28+00:00</updated>
<entry>
<title>T5428: remove hardcoded dhcp lease file path from dhclient hook</title>
<updated>2023-08-05T09:01:28+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-08-05T08:54:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=2c8135270dafee602cd86cb19dc73366fa0a8b98'/>
<id>urn:sha1:2c8135270dafee602cd86cb19dc73366fa0a8b98</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dhcp: T5428: remove hardcoded path to client runtime directories</title>
<updated>2023-08-05T07:28:03+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-08-05T07:01:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=96132f582ef698b84d08e5ff207e508ed0f9c5f7'/>
<id>urn:sha1:96132f582ef698b84d08e5ff207e508ed0f9c5f7</id>
<content type='text'>
</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>
<entry>
<title>T4997: add dhcp client user hooks</title>
<updated>2023-02-26T20:05:56+00:00</updated>
<author>
<name>bri</name>
<email>284789+b-@users.noreply.github.com</email>
</author>
<published>2023-02-26T20:05:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=40e0cb294e0377fdfe11171b35d78bd27e231df2'/>
<id>urn:sha1:40e0cb294e0377fdfe11171b35d78bd27e231df2</id>
<content type='text'>
This commit adds a script to run user-defined hook scripts upon renewing
a DHCP lease. This can be used to, for example, dynamically define a
firewall address-group based on the dynamic IP address of an interface.

For an example of its use (as well as the use case I had in mind while
coding this), see https://vyos.dev/T2196#142394

Co-authored-by: br &lt;git@ibeep.com&gt;</content>
</entry>
<entry>
<title>ipsec: T2816: do not explicitly call intepreter for python 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:33:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=843ebb323c99ddea200c12d143640e4e3c1bcd89'/>
<id>urn:sha1:843ebb323c99ddea200c12d143640e4e3c1bcd89</id>
<content type='text'>
Our python scripts use the shebang logic to set an intepreter - we should
rely on this and not use an external interpreter in front of the helper.
</content>
</entry>
<entry>
<title>T4815: Fix various name server config issues</title>
<updated>2022-11-14T03:04:05+00:00</updated>
<author>
<name>Yuxiang Zhu</name>
<email>vfreex@gmail.com</email>
</author>
<published>2022-11-14T02:23:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=00ec496877453cc37ceec0633821a47f128d9f4f'/>
<id>urn:sha1:00ec496877453cc37ceec0633821a47f128d9f4f</id>
<content type='text'>
1. When a PPPoE session is connected, `pppd` will update
   `/etc/resolv.conf` regardless of `system name-server` option unless `no-peer-dns` is set.
   This is because `pppd` vendors scripts `/etc/ppp/ip-up.d/0000usepeerdns` and `/etc/ppp/ip-down.d/0000usepeerdns`,
   which updates `/etc/resolv.conf` on PPPoE connection and reverts the change on disconnection.
   This PR removes those scripts and adds custom scripts to update name server entries through `vyos-hostsd` instead.

2. There is a typo in `/etc/dhcp/dhclient-enter-hooks.d/04-vyos-resolvconf, which misspells variable name `new_dhcp6_name_servers` as `new_dhcpv6_name_servers`.
   This causes IPv6 name server entries in `vyos-hostsd` not updated
   when dhclient receives nameservers from DHCPv6.

3. Regular expressions in scripts under `/etc/dhcp/dhclient-enter-hooks.d` and
   `/etc/dhcp/dhclient-exit-hooks.d/` are not enclosed in `^$`, so those
   IPv4 related branches (like `BOUND`) could be mistakenly executed when an IPv6
   reason (like `BOUND6`) is given.
</content>
</entry>
<entry>
<title>T4405: Fix administrative distance of DHCP routes</title>
<updated>2022-05-10T15:56:01+00:00</updated>
<author>
<name>Dmitri Toubelis</name>
<email>dtoubelis@users.noreply.github.com</email>
</author>
<published>2022-05-05T05:41:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=636e9dc5b2b8e8911ff8d704b553b8d285ad6f1e'/>
<id>urn:sha1:636e9dc5b2b8e8911ff8d704b553b8d285ad6f1e</id>
<content type='text'>
- Default dhclient script only uses value of `$IF_MERIC` envvar for default route recived via `router` option.
- This variable has no effect on rotes received via `rfc3442-classless-static-routes` option
- Considering that Vyos overrrides `ip` command originating from `dhclient` this can be easily fixed in `iptovtysh()` function by using the `$IF_METRIC` envvar directly in the dhclient hook.

(cherry picked from commit 0c00e7bf8b6e68814607fde4ff0cd70ce9f4b486)
</content>
</entry>
<entry>
<title>Revert "dhclient: T3392: remove /usr/sbin prefix from iproute2 ip command"</title>
<updated>2022-02-01T07:00:58+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-02-01T07:00:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=bf549b34e7daab7e843176bc1c8a8d03148f3840'/>
<id>urn:sha1:bf549b34e7daab7e843176bc1c8a8d03148f3840</id>
<content type='text'>
This reverts commit 78b247b724f74bdabab0706aaa7f5b00e5809bc1.
</content>
</entry>
</feed>
