From a3b5c8083e6ab28378ba187ec9aa0f3ce3d101df Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 10 Nov 2020 20:39:39 +0100 Subject: interfaces: introduce new common-with|without-dhcp include Now we have one single include dealing with all the common interface stuff which is present on every interface. --- docs/_include/interface-common-with-dhcp.txt | 7 +++++++ docs/_include/interface-common-without-dhcp.txt | 7 +++++++ docs/_include/interface-common.txt | 11 +++++++++++ docs/interfaces/bond.rst | 16 ++-------------- docs/interfaces/bridge.rst | 15 +-------------- docs/interfaces/ethernet.rst | 14 +------------- docs/interfaces/geneve.rst | 6 +----- docs/interfaces/macsec.rst | 14 +------------- docs/interfaces/pseudo-ethernet.rst | 14 +------------- docs/interfaces/vxlan.rst | 14 +------------- 10 files changed, 33 insertions(+), 85 deletions(-) create mode 100644 docs/_include/interface-common-with-dhcp.txt create mode 100644 docs/_include/interface-common-without-dhcp.txt create mode 100644 docs/_include/interface-common.txt diff --git a/docs/_include/interface-common-with-dhcp.txt b/docs/_include/interface-common-with-dhcp.txt new file mode 100644 index 00000000..34eef941 --- /dev/null +++ b/docs/_include/interface-common-with-dhcp.txt @@ -0,0 +1,7 @@ +.. cmdinclude:: ../_include/interface-address-with-dhcp.txt + :var0: {{ var0 }} + :var1: {{ var1 }} + +.. cmdinclude:: ../_include/interface-common.txt + :var0: {{ var0 }} + :var1: {{ var1 }} diff --git a/docs/_include/interface-common-without-dhcp.txt b/docs/_include/interface-common-without-dhcp.txt new file mode 100644 index 00000000..8e995ee1 --- /dev/null +++ b/docs/_include/interface-common-without-dhcp.txt @@ -0,0 +1,7 @@ +.. cmdinclude:: ../_include/interface-address.txt + :var0: {{ var0 }} + :var1: {{ var1 }} + +.. cmdinclude:: ../_include/interface-common.txt + :var0: {{ var0 }} + :var1: {{ var1 }} diff --git a/docs/_include/interface-common.txt b/docs/_include/interface-common.txt new file mode 100644 index 00000000..56d4a22e --- /dev/null +++ b/docs/_include/interface-common.txt @@ -0,0 +1,11 @@ +.. cmdinclude:: ../_include/interface-description.txt + :var0: {{ var0 }} + :var1: {{ var1 }} + +.. cmdinclude:: ../_include/interface-ipv6-addr-autoconf.txt + :var0: {{ var0 }} + :var1: {{ var1 }} + +.. cmdinclude:: ../_include/interface-ipv6-addr-eui64.txt + :var0: {{ var0 }} + :var1: {{ var1 }} diff --git a/docs/interfaces/bond.rst b/docs/interfaces/bond.rst index e23d2c52..6cdc08ea 100644 --- a/docs/interfaces/bond.rst +++ b/docs/interfaces/bond.rst @@ -16,20 +16,8 @@ Configuration Common interface configuration ------------------------------ -.. cmdinclude:: ../_include/interface-address-with-dhcp.txt - :var0: bonding - :var1: bond0 - -.. cmdinclude:: ../_include/interface-description.txt - :var0: bonding - :var1: bond0 - -.. cmdinclude:: ../_include/interface-ipv6-addr-autoconf.txt - :var0: bonding - :var1: bond0 - -.. cmdinclude:: ../_include/interface-ipv6-addr-eui64.txt - :var0: bonding +.. cmdinclude:: ../_include/interface-common-with-dhcp.txt + :var0: bond :var1: bond0 Link Administration diff --git a/docs/interfaces/bridge.rst b/docs/interfaces/bridge.rst index ec946041..a880c023 100644 --- a/docs/interfaces/bridge.rst +++ b/docs/interfaces/bridge.rst @@ -20,19 +20,7 @@ Configuration Common interface configuration ------------------------------ -.. cmdinclude:: ../_include/interface-address-with-dhcp.txt - :var0: bridge - :var1: br0 - -.. cmdinclude:: ../_include/interface-description.txt - :var0: bridge - :var1: br0 - -.. cmdinclude:: ../_include/interface-ipv6-addr-autoconf.txt - :var0: bridge - :var1: br0 - -.. cmdinclude:: ../_include/interface-ipv6-addr-eui64.txt +.. cmdinclude:: ../_include/interface-common-with-dhcp.txt :var0: bridge :var1: br0 @@ -40,7 +28,6 @@ Common interface configuration MAC address aging ` in seconds (default: 300). - .. cfgcmd:: set interfaces bridge max-age