diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-14 02:35:36 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-14 02:35:36 +0300 |
| commit | f356d2db616d9324efe8954cd040e3a5daf71539 (patch) | |
| tree | b5e9d3db8bbd966c672b78560e408ed2500ae806 /docs/_include | |
| parent | bfce10e80addd69a070da99f2e85bd4e202c5505 (diff) | |
| download | vyos-documentation-f356d2db616d9324efe8954cd040e3a5daf71539.tar.gz vyos-documentation-f356d2db616d9324efe8954cd040e3a5daf71539.zip | |
docs: convert _include/interface-address-with-dhcp.txt MyST→RST (per RST-leftovers cleanup design)
Diffstat (limited to 'docs/_include')
| -rw-r--r-- | docs/_include/interface-address-with-dhcp.txt | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/docs/_include/interface-address-with-dhcp.txt b/docs/_include/interface-address-with-dhcp.txt index 101a4e6d..8b7c3431 100644 --- a/docs/_include/interface-address-with-dhcp.txt +++ b/docs/_include/interface-address-with-dhcp.txt @@ -1,11 +1,9 @@ -::::{cfgcmd} set interfaces {{ var0 }} \<interface\> {{ var2 }} {{ var3 }} - -:::: +.. cfgcmd:: set interfaces {{ var0 }} <interface> {{ var2 }} {{ var3 }} {{ var5 }} {{ var6 }} address <address | dhcp | dhcpv6> - Configure interface `<interface>` with one or more interface addresses. + Configure interface ``<interface>`` with one or more interface addresses. * **address** can be specified multiple times as IPv4 and/or IPv6 address, e.g. 192.0.2.1/24 and/or 2001:db8::1/64 @@ -14,15 +12,16 @@ * **dhcpv6** interface address is received by DHCPv6 from a DHCPv6 server on this segment. - :::{note} - When using DHCP to retrieve IPv4 address and if local + .. note:: + + When using DHCP to retrieve IPv4 address and if local + + customizations are needed, they should be possible using the enter and + exit hooks provided. The hook dirs are: - customizations are needed, they should be possible using the enter and - exit hooks provided. The hook dirs are: + * ``/config/scripts/dhcp-client/pre-hooks.d/`` + * ``/config/scripts/dhcp-client/post-hooks.d/`` - * ``/config/scripts/dhcp-client/pre-hooks.d/`` - * ``/config/scripts/dhcp-client/post-hooks.d/`` - ::: Example: .. code-block:: none |
