From 58b3a577e5386e52ccfade8c5d9c3d5bc36f2839 Mon Sep 17 00:00:00 2001 From: rebortg Date: Mon, 9 Nov 2020 21:30:06 +0100 Subject: Bridge: convert address to cmdinclude --- docs/_include/interface-address.txt | 21 +++++++++++++++++++++ docs/interfaces/bridge.rst | 24 +++--------------------- 2 files changed, 24 insertions(+), 21 deletions(-) create mode 100644 docs/_include/interface-address.txt diff --git a/docs/_include/interface-address.txt b/docs/_include/interface-address.txt new file mode 100644 index 00000000..1de05c31 --- /dev/null +++ b/docs/_include/interface-address.txt @@ -0,0 +1,21 @@ +.. cfgcmd:: set interfaces {{ var0 }} address
+ + Configure 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 {{ var0 }} {{ var1 }} address 192.0.2.1/24 + set interfaces {{ var0 }} {{ var1 }} address 192.0.2.2/24 + set interfaces {{ var0 }} {{ var1 }} address 2001:db8::ffff/64 + set interfaces {{ var0 }} {{ var1 }} address 2001:db8:100::ffff/64 \ No newline at end of file diff --git a/docs/interfaces/bridge.rst b/docs/interfaces/bridge.rst index a7343a0d..26e67690 100644 --- a/docs/interfaces/bridge.rst +++ b/docs/interfaces/bridge.rst @@ -20,27 +20,9 @@ Configuration Address ------- -.. cfgcmd:: set interfaces bridge address
- - Configure 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 bridge br0 address 192.0.2.1/24 - set interfaces bridge br0 address 192.0.2.2/24 - set interfaces bridge br0 address 2001:db8::ffff/64 - set interfaces bridge br0 address 2001:db8:100::ffff/64 +.. cmdinclude:: ../_include/interface-address.txt + :var0: bridge + :var1: br0 .. cfgcmd:: set interfaces bridge ipv6 address autoconf -- cgit v1.2.3