summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-10 21:42:38 +0100
committerChristian Poessinger <christian@poessinger.com>2020-11-10 21:42:38 +0100
commitf6ee81e58268ce1a666f68504f327f49c4402130 (patch)
treec19a0799fde38e1883937367965c547c56bba970 /docs
parentab3552884ee1c5560fb37c5deb5e4ee1662f20bc (diff)
downloadvyos-documentation-f6ee81e58268ce1a666f68504f327f49c4402130.tar.gz
vyos-documentation-f6ee81e58268ce1a666f68504f327f49c4402130.zip
interface: move mac and mtu documentation to common file
Diffstat (limited to 'docs')
-rw-r--r--docs/_include/interface-common.txt12
-rw-r--r--docs/_include/interface-disable.txt10
-rw-r--r--docs/_include/interface-mac.txt10
-rw-r--r--docs/_include/interface-mtu.txt10
-rw-r--r--docs/interfaces/bond.rst16
-rw-r--r--docs/interfaces/bridge.rst21
-rw-r--r--docs/interfaces/dummy.rst13
-rw-r--r--docs/interfaces/ethernet.rst21
-rw-r--r--docs/interfaces/loopback.rst8
-rw-r--r--docs/interfaces/pseudo-ethernet.rst19
-rw-r--r--docs/interfaces/vxlan.rst21
-rw-r--r--docs/interfaces/wirelessmodem.rst18
12 files changed, 42 insertions, 137 deletions
diff --git a/docs/_include/interface-common.txt b/docs/_include/interface-common.txt
index 56d4a22e..052088df 100644
--- a/docs/_include/interface-common.txt
+++ b/docs/_include/interface-common.txt
@@ -2,6 +2,18 @@
:var0: {{ var0 }}
:var1: {{ var1 }}
+.. cmdinclude:: ../_include/interface-disable.txt
+ :var0: {{ var0 }}
+ :var1: {{ var1 }}
+
+.. cmdinclude:: ../_include/interface-mac.txt
+ :var0: {{ var0 }}
+ :var1: {{ var1 }}
+
+.. cmdinclude:: ../_include/interface-mtu.txt
+ :var0: {{ var0 }}
+ :var1: {{ var1 }}
+
.. cmdinclude:: ../_include/interface-ipv6-addr-autoconf.txt
:var0: {{ var0 }}
:var1: {{ var1 }}
diff --git a/docs/_include/interface-disable.txt b/docs/_include/interface-disable.txt
new file mode 100644
index 00000000..83ef3e53
--- /dev/null
+++ b/docs/_include/interface-disable.txt
@@ -0,0 +1,10 @@
+.. cfgcmd:: set interfaces {{ var0 }} <interface> disable
+
+ Disable given `<interface>`. It will be placed in administratively down
+ (``A/D``) state.
+
+ Example:
+
+ .. code-block:: none
+
+ set interfaces {{ var0 }} {{ var1 }} disable \ No newline at end of file
diff --git a/docs/_include/interface-mac.txt b/docs/_include/interface-mac.txt
new file mode 100644
index 00000000..29157555
--- /dev/null
+++ b/docs/_include/interface-mac.txt
@@ -0,0 +1,10 @@
+.. cfgcmd:: set interfaces {{ var0 }} <interface> mac <xx:xx:xx:xx:xx:xx>
+
+ Configure user defined :abbr:`MAC (Media Access Control)` address on given
+ `<interface>`.
+
+ Example:
+
+ .. code-block:: none
+
+ set interfaces {{ var0 }} {{ var1 }} mac '00:01:02:03:04:05' \ No newline at end of file
diff --git a/docs/_include/interface-mtu.txt b/docs/_include/interface-mtu.txt
new file mode 100644
index 00000000..e727c3e9
--- /dev/null
+++ b/docs/_include/interface-mtu.txt
@@ -0,0 +1,10 @@
+.. cfgcmd:: set interfaces {{ var0 }} <interface> mtu <mtu>
+
+ Configure :abbr:`MTU (Maximum Transmission Unit)` on given `<interface>`. It
+ is the size (in bytes) of the largest ethernet frame sent on this link.
+
+ Example:
+
+ .. code-block:: none
+
+ set interfaces {{ var0 }} {{ var1 }} mtu 1450 \ No newline at end of file
diff --git a/docs/interfaces/bond.rst b/docs/interfaces/bond.rst
index 6cdc08ea..4565eafc 100644
--- a/docs/interfaces/bond.rst
+++ b/docs/interfaces/bond.rst
@@ -23,22 +23,6 @@ Common interface configuration
Link Administration
-------------------
-.. cfgcmd:: set interfaces bonding <interface> description <description>
-
- Assign given `<description>` to interface. Description will also be passed
- to SNMP monitoring systems.
-
-
-.. cfgcmd:: set interfaces bonding <interface> disable
-
- Disable given `<interface>`. It will be placed in administratively down
- (``A/D``) state.
-
-.. cfgcmd:: set interfaces bonding <interface> mac <mac-address>
-
- Configure user defined :abbr:`MAC (Media Access Control)` address on given
- `<interface>`.
-
.. cfgcmd:: set interfaces bonding <interface> mode <mode>
Specifies one of the bonding policies. The default is 802.3ad. Possible
diff --git a/docs/interfaces/bridge.rst b/docs/interfaces/bridge.rst
index a880c023..8704d334 100644
--- a/docs/interfaces/bridge.rst
+++ b/docs/interfaces/bridge.rst
@@ -39,35 +39,14 @@ Common interface configuration
Link Administration
-------------------
-.. cfgcmd:: set interfaces bridge <interface> description <description>
-
- Assign given `<description>` to interface. Description will also be
- passed to SNMP monitoring systems.
-
-
-.. cfgcmd:: set interfaces bridge <interface> disable
-
- Disable given `<interface>`. It will be placed in administratively
- down (``A/D``) state.
-
-
.. cfgcmd:: set interfaces bridge <interface> disable-flow-control
Disable Ethernet flow control (pause frames).
-
-.. cfgcmd:: set interfaces bridge <interface> mac <mac-address>
-
- Configure user defined :abbr:`MAC (Media Access Control)` address on
- given `<interface>`.
-
-
.. cfgcmd:: set interfaces bridge <interface> igmp querier
Enable IGMP querier
-
-
Member Interfaces
-----------------
diff --git a/docs/interfaces/dummy.rst b/docs/interfaces/dummy.rst
index 02680f90..a3989138 100644
--- a/docs/interfaces/dummy.rst
+++ b/docs/interfaces/dummy.rst
@@ -33,19 +33,6 @@ Common interface configuration
:var0: dummy
:var1: dum0
-Link Administration
--------------------
-
-.. cfgcmd:: set interfaces dummy <interface> description <description>
-
- Assign given `<description>` to interface. Description will also be passed
- to SNMP monitoring systems.
-
-.. cfgcmd:: set interfaces dummy <interface> disable
-
- Disable given `<interface>`. It will be placed in administratively down
- state.
-
Operation
=========
diff --git a/docs/interfaces/ethernet.rst b/docs/interfaces/ethernet.rst
index cdf3622c..578ac517 100644
--- a/docs/interfaces/ethernet.rst
+++ b/docs/interfaces/ethernet.rst
@@ -48,32 +48,11 @@ Speed/Duplex
Link Administration
-------------------
-.. cfgcmd:: set interfaces ethernet <interface> description <description>
-
- Assign given `<description>` to interface. Description will also be passed
- to SNMP monitoring systems.
-
-.. cfgcmd:: set interfaces ethernet <interface> disable
-
- Disable given `<interface>`. It will be placed in administratively down
- (``A/D``) state.
-
.. cfgcmd:: set interfaces ethernet <interface> disable-flow-control
Disable Ethernet flow control (pause frames).
-.. cfgcmd:: set interfaces ethernet <interface> mac <mac-address>
-
- Configure user defined :abbr:`MAC (Media Access Control)` address on given
- `<interface>`.
-
-.. cfgcmd:: set interfaces ethernet <interface> mtu <mtu>
-
- Configure :abbr:`MTU (Maximum Transmission Unit)` on given `<interface>`. It
- is the size (in bytes) of the largest ethernet frame sent on this link.
-
-
Operation
=========
diff --git a/docs/interfaces/loopback.rst b/docs/interfaces/loopback.rst
index 06486faa..ed241eb2 100644
--- a/docs/interfaces/loopback.rst
+++ b/docs/interfaces/loopback.rst
@@ -33,14 +33,6 @@ Common interface configuration
:var0: loopback
:var1: lo
-Link Administration
--------------------
-
-.. cfgcmd:: set interfaces loopback lo description <description>
-
- Assign given `<description>` to interface `lo`. Description will also be
- passed to SNMP monitoring systems.
-
Operation
=========
diff --git a/docs/interfaces/pseudo-ethernet.rst b/docs/interfaces/pseudo-ethernet.rst
index 4244284b..52ba789b 100644
--- a/docs/interfaces/pseudo-ethernet.rst
+++ b/docs/interfaces/pseudo-ethernet.rst
@@ -55,22 +55,3 @@ Physical Asignment
Specifies the physical `<ethX>` Ethernet interface associated with a Pseudo
Ethernet `<interface>`.
-
-Link Administration
--------------------
-
-.. cfgcmd:: set interfaces pseudo-ethernet <interface> description <description>
-
- Assign given `<description>` to interface. Description will also be passed
- to SNMP monitoring systems.
-
-.. cfgcmd:: set interfaces pseudo-ethernet <interface> disable
-
- Disable given `<interface>`. It will be placed in administratively down
- (``A/D``) state.
-
-.. cfgcmd:: set interfaces pseudo-ethernet <interface> mac <mac-address>
-
- Configure user defined :abbr:`MAC (Media Access Control)` address on given
- `<interface>`.
-
diff --git a/docs/interfaces/vxlan.rst b/docs/interfaces/vxlan.rst
index 742485dd..5ecfeb0a 100644
--- a/docs/interfaces/vxlan.rst
+++ b/docs/interfaces/vxlan.rst
@@ -90,27 +90,6 @@ L2VVPN / EVPN
Source IP address used for VXLAN underlay. This is mandatory when using
VXLAN via L2VPN/EVPN.
-
-Link Administration
--------------------
-
-.. cfgcmd:: set interfaces vxlan <interface> description <description>
-
- Assign given `<description>` to interface. Description will also be passed
- to SNMP monitoring systems.
-
-.. cfgcmd:: set interfaces vxlan <interface> disable
-
- Disable given `<interface>`. It will be placed in administratively down
- (``A/D``) state.
-
-.. cfgcmd:: set interfaces vxlan <interface> mtu <mtu>
-
- Configure :abbr:`MTU (Maximum Transmission Unit)` on given `<interface>`. It
- is the size (in bytes) of the largest ethernet frame sent on this link.
- MTU ranges from 1450 to 9000 bytes. For best performance you should have
- a MTU > 1550 bytes on your underlay.
-
Multicast VXLAN
===============
diff --git a/docs/interfaces/wirelessmodem.rst b/docs/interfaces/wirelessmodem.rst
index 5e2eac40..eabb17b9 100644
--- a/docs/interfaces/wirelessmodem.rst
+++ b/docs/interfaces/wirelessmodem.rst
@@ -51,24 +51,6 @@ Address
connection is established at boot time and remains up. If the link fails for
any reason, the link is brought back up immediately.
-Link Administration
--------------------
-
-.. cfgcmd:: set interfaces wirelessmodem <interface> description <description>
-
- Assign given `<description>` to interface. Description will also be passed
- to SNMP monitoring systems.
-
-.. cfgcmd:: set interfaces wirelessmodem <interface> disable
-
- Disable given `<interface>`. It will be placed in administratively down
- state.
-
-.. cfgcmd:: set interfaces wirelessmodem <interface> mtu <mtu>
-
- Configure :abbr:`MTU (Maximum Transmission Unit)` on given `<interface>`. It
- is the size (in bytes) of the largest ethernet frame sent on this link.
-
Example
=======