From b7e61a03f09b93cdaa91a3c6b13d967621483f5c Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 10 Nov 2020 20:02:47 +0100 Subject: 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. --- docs/interfaces/pseudo-ethernet.rst | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'docs/interfaces/pseudo-ethernet.rst') diff --git a/docs/interfaces/pseudo-ethernet.rst b/docs/interfaces/pseudo-ethernet.rst index a2066555..eec28981 100644 --- a/docs/interfaces/pseudo-ethernet.rst +++ b/docs/interfaces/pseudo-ethernet.rst @@ -44,22 +44,17 @@ Configuration Address ------- -.. cfgcmd:: set interfaces pseudo-ethernet address
+.. cmdinclude:: ../_include/interface-address.txt + :var0: pseudo-ethernet + :var1: peth0 - .. include:: common-ip-ipv6-addr.txt +.. cmdinclude:: ../_include/interface-ipv6-addr-autoconf.txt + :var0: pseudo-ethernet + :var1: peth0 - Example: - - .. code-block:: none - - set interfaces pseudo-ethernet peth0 address 192.0.2.1/24 - set interfaces pseudo-ethernet peth0 address 192.0.2.2/24 - set interfaces pseudo-ethernet peth0 address 2001:db8::ffff/64 - set interfaces pseudo-ethernet peth0 address 2001:db8:100::ffff/64 - -.. cfgcmd:: set interfaces pseudo-ethernet ipv6 address autoconf - - .. include:: common-ipv6-addr-autoconf.txt +.. cmdinclude:: ../_include/interface-ipv6-addr-eui64.txt + :var0: pseudo-ethernet + :var1: peth0 Physical Asignment ------------------ -- cgit v1.2.3