<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/etc/dhcp, branch equuleus</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/marekm72/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/marekm72/vyos-1x.git/atom?h=equuleus</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-1x.git/atom?h=equuleus'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/'/>
<updated>2024-04-04T19:24:54+00:00</updated>
<entry>
<title>dhcpv6-client: T2590: fix vyos-hostsd update for nameserver and search domains</title>
<updated>2024-04-04T19:24:54+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-04-01T12:04:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=acb01526bedfb0aa96aa59cad5dec092769bd676'/>
<id>urn:sha1:acb01526bedfb0aa96aa59cad5dec092769bd676</id>
<content type='text'>
After migrating from ISC DHCLIENT for IPv6 to wide-dhcp-client the logic which
was present to update /etc/resolv.conf with the DHCP specified nameservers and
also the search domain list was no longer present.

This commit adds a per interface rendered script to inform vyos-hostsd about
the received IPv6 nameservers and search domains.

(cherry picked from commit ece425f0191762638b7c967097accd8739e9103d)
</content>
</entry>
<entry>
<title>backport: T4815: Fix various name server config issues</title>
<updated>2022-11-15T05:56:56+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/marekm72/vyos-1x.git/commit/?id=ff901a52bb9acd4bdd0e3a96033c896e4667a6af'/>
<id>urn:sha1:ff901a52bb9acd4bdd0e3a96033c896e4667a6af</id>
<content type='text'>
This is a backport of https://github.com/vyos/vyos-1x/pull/1656.

Note I also changed `ip-down.script.tmpl` to not wait for `systemctl
stop dhcp6c@$iface.service`, because that command is slow and pppd will
kill the ip-down script if it times out.

I didn't see `ip-down.script.tmpl` or its equivalent in the 1.4 branch.
Not sure if there is another mechanism to handle that functionality or
it is missed.
</content>
</entry>
<entry>
<title>T4405: Fix administrative distance of DHCP routes</title>
<updated>2022-05-05T05:41:45+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/marekm72/vyos-1x.git/commit/?id=0c00e7bf8b6e68814607fde4ff0cd70ce9f4b486'/>
<id>urn:sha1:0c00e7bf8b6e68814607fde4ff0cd70ce9f4b486</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.</content>
</entry>
<entry>
<title>dhclient: T4121: Fixed resolv.conf generation at early boot stage</title>
<updated>2021-12-30T16:02:26+00:00</updated>
<author>
<name>zsdc</name>
<email>taras@vyos.io</email>
</author>
<published>2021-12-29T22:41:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=1a9c1479044040c64ca6be91835d8cea7004ddff'/>
<id>urn:sha1:1a9c1479044040c64ca6be91835d8cea7004ddff</id>
<content type='text'>
In case if a CLI configuration is not available, dhclient cannot add
nameservers to a `resolv.conf` file, because `vyos-hostsd` requires that
an interface be listed in the `set system name-server` option.
This commit introduces two changes:

* `vyos-hostsd` service will not be started before Cloud-Init fetch all
remote data. This is required because all meta-data should be available
for Cloud-Init before any of VyOS-related services start since it is
used for configuration generation.

* the `vyos-hostsd-client` in the `dhclient-script` will be used only if
the `vyos-hostsd` is running. In other words - if VyOS services already
started, dhclient changes `resolv.conf` using `vyos-hostsd`; in other
cases - does this directly.

These changes should protect us from problems with DHCP during system
boot if DHCP is required by third-party utils.
</content>
</entry>
<entry>
<title>dhclient: T3940: Added lease file argument to the `dhclient -x` call</title>
<updated>2021-11-01T08:11:22+00:00</updated>
<author>
<name>zsdc</name>
<email>taras@vyos.io</email>
</author>
<published>2021-10-25T18:44:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=0c2384114e8abbd9c883a57729564c70c0a86eec'/>
<id>urn:sha1:0c2384114e8abbd9c883a57729564c70c0a86eec</id>
<content type='text'>
When `dhclient` with the `-x` option is used to stop running DHCP client
with a lease file that is not the same as in the new `dhclient` process,
it requires a `-lf` argument with a path to the old lease file to find
information about old/active leases and process them according to
instructions and config.

This commit adds the option to the `02-vyos-stopdhclient` hook, which
allows to properly process `dhclient` instances started in different
ways.

(cherry picked from commit 393970f9ee5b3dfc58e0e999d3d5941a198b2c6f)
</content>
</entry>
<entry>
<title>dhclient hooks: T3920: avoid 'too many args' error when no vrf</title>
<updated>2021-10-20T12:50:51+00:00</updated>
<author>
<name>Ross Dougherty</name>
<email>ross@dougherty.id.au</email>
</author>
<published>2021-10-20T12:50:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=67b3dd6b4715fef266eb47e68623944f8be617e0'/>
<id>urn:sha1:67b3dd6b4715fef266eb47e68623944f8be617e0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dhclient: T3852: Fixed dhclient processes search</title>
<updated>2021-09-28T09:50:30+00:00</updated>
<author>
<name>zsdc</name>
<email>taras@vyos.io</email>
</author>
<published>2021-09-28T09:50:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=2224130742d2867bb12b81deac8972d17920d9d7'/>
<id>urn:sha1:2224130742d2867bb12b81deac8972d17920d9d7</id>
<content type='text'>
Backported commits:
13abffe43b2a5c41bb4ec4675c227f6cf1f868da
01158a8eaa574c48c726c20693479e4aa6e18ee6

This allows finding all running dhclient processes properly.
</content>
</entry>
<entry>
<title>dhclient: T3471: Fixed dhclient processes search</title>
<updated>2021-04-14T06:04:38+00:00</updated>
<author>
<name>zsdc</name>
<email>taras@vyos.io</email>
</author>
<published>2021-04-13T21:26:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=9b7a4861b35109c47f4b1bc1d688dff928c6f023'/>
<id>urn:sha1:9b7a4861b35109c47f4b1bc1d688dff928c6f023</id>
<content type='text'>
Since in some cases a dhclient command may not end with an interface name, the
way to find out a list of dhclients running for a current interface was replaced
to catch PIDs regardless of the exact command syntax.

(cherry picked from commit 13abffe43b2a5c41bb4ec4675c227f6cf1f868da)
</content>
</entry>
<entry>
<title>dhcp: T3300: add DHCP default route distance</title>
<updated>2021-03-19T18:41:09+00:00</updated>
<author>
<name>Brandon Stepler</name>
<email>brandon@stepler.net</email>
</author>
<published>2021-02-15T15:30:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=ff6afe62e801e570f6478decf2b4a813a5c0ee94'/>
<id>urn:sha1:ff6afe62e801e570f6478decf2b4a813a5c0ee94</id>
<content type='text'>
(cherry picked from commit dd2eb5e5686655c996ae95285b8ad7eb73d63d0b)
</content>
</entry>
<entry>
<title>dhcp: T3392: fix VRF detection</title>
<updated>2021-03-19T18:37:50+00:00</updated>
<author>
<name>Brandon Stepler</name>
<email>brandon@stepler.net</email>
</author>
<published>2021-03-08T19:20:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=74f526c9c1fe782c604d2b88c1753d787dc696b4'/>
<id>urn:sha1:74f526c9c1fe782c604d2b88c1753d787dc696b4</id>
<content type='text'>
(cherry picked from commit ce0600e97baec18c1781605f3a80c26d4ed01e2b)
</content>
</entry>
</feed>
