summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-09-03 15:13:34 +0200
committerChristian Poessinger <christian@poessinger.com>2019-09-03 15:13:34 +0200
commit21bcf16ce23d3df7c3267508012e663e8b443ccd (patch)
tree35375b8bc4445a517b546f053d73ec2170e8236f /python/vyos
parent8a524a1ae182c7ad9b031c7b0d79273a3df13390 (diff)
downloadvyos-1x-21bcf16ce23d3df7c3267508012e663e8b443ccd.tar.gz
vyos-1x-21bcf16ce23d3df7c3267508012e663e8b443ccd.zip
Python/ifconfig: T1557: add description for Interface classes
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/ifconfig.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py
index 71587d045..341a9770c 100644
--- a/python/vyos/ifconfig.py
+++ b/python/vyos/ifconfig.py
@@ -680,16 +680,33 @@ class Interface:
class LoopbackIf(Interface):
+ """
+ The loopback device is a special, virtual network interface that your router
+ uses to communicate with itself.
+ """
def __init__(self, ifname):
super().__init__(ifname, type='loopback')
class DummyIf(Interface):
+ """
+ A dummy interface is entirely virtual like, for example, the loopback
+ interface. The purpose of a dummy interface is to provide a device to route
+ packets through without actually transmitting them.
+ """
def __init__(self, ifname):
super().__init__(ifname, type='dummy')
class BridgeIf(Interface):
+ """
+ A bridge is a way to connect two Ethernet segments together in a protocol
+ independent way. Packets are forwarded based on Ethernet address, rather
+ than IP address (like a router). Since forwarding is done at Layer 2, all
+ protocols can go transparently through a bridge.
+
+ The Linux bridge code implements a subset of the ANSI/IEEE 802.1d standard.
+ """
def __init__(self, ifname):
super().__init__(ifname, type='bridge')
@@ -950,6 +967,13 @@ class BridgeIf(Interface):
class BondIf(Interface):
+ """
+ The Linux bonding driver provides a method for aggregating multiple network
+ interfaces into a single logical "bonded" interface. The behavior of the
+ bonded interfaces depends upon the mode; generally speaking, modes provide
+ either hot standby or load balancing services. Additionally, link integrity
+ monitoring may be performed.
+ """
def __init__(self, ifname):
super().__init__(ifname, type='bond')