summaryrefslogtreecommitdiff
path: root/docs/interfaces/bond.rst
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-10 20:02:47 +0100
committerChristian Poessinger <christian@poessinger.com>2020-11-10 20:02:47 +0100
commitb7e61a03f09b93cdaa91a3c6b13d967621483f5c (patch)
tree1f73da172e4b175beaac3a5fb5cd798579b226f1 /docs/interfaces/bond.rst
parent58b3a577e5386e52ccfade8c5d9c3d5bc36f2839 (diff)
downloadvyos-documentation-b7e61a03f09b93cdaa91a3c6b13d967621483f5c.tar.gz
vyos-documentation-b7e61a03f09b93cdaa91a3c6b13d967621483f5c.zip
interfaces: extend usage of new cmdinclude directive for bridge, bond, eth, peth, vxlan
Commit c46473a ("docs: add ..cmdinclude:: directive") added support for including common text but only replacing individual labels so there can be source of truth also for the documentation.
Diffstat (limited to 'docs/interfaces/bond.rst')
-rw-r--r--docs/interfaces/bond.rst41
1 files changed, 9 insertions, 32 deletions
diff --git a/docs/interfaces/bond.rst b/docs/interfaces/bond.rst
index 9e67809a..78099f01 100644
--- a/docs/interfaces/bond.rst
+++ b/docs/interfaces/bond.rst
@@ -16,40 +16,17 @@ Configuration
Address
-------
-.. cfgcmd:: set interfaces bonding <interface> address <address | dhcp | dhcpv6>
+.. cmdinclude:: ../_include/interface-address.txt
+ :var0: bonding
+ :var1: bond0
- 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
- * **dhcp** interface address is received by DHCP from a DHCP server on this
- segment.
- * **dhcpv6** interface address is received by DHCPv6 from a DHCPv6 server on
- this segment.
-
- Example:
-
- .. code-block:: none
-
- set interfaces bonding bond0 address 192.0.2.1/24
- set interfaces bonding bond0 address 192.0.2.2/24
- set interfaces bonding bond0 address 2001:db8::ffff/64
- set interfaces bonding bond0 address 2001:db8:100::ffff/64
-
-
-.. cfgcmd:: set interfaces bonding <interface> ipv6 address autoconf
-
- .. include:: common-ipv6-addr-autoconf.txt
-
-.. cfgcmd:: set interfaces bonding <interface> ipv6 address eui64 <prefix>
-
- :abbr:`EUI-64 (64-Bit Extended Unique Identifier)` as specified in
- :rfc:`4291` allows a host to assign iteslf a unique 64-Bit IPv6 address.
-
- .. code-block:: none
-
- set interfaces bonding bond0 ipv6 address eui64 2001:db8:beef::/64
+.. cmdinclude:: ../_include/interface-ipv6-addr-autoconf.txt
+ :var0: bonding
+ :var1: bond0
+.. cmdinclude:: ../_include/interface-ipv6-addr-eui64.txt
+ :var0: bonding
+ :var1: bond0
Link Administration
-------------------