diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-09-03 15:13:34 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-09-03 15:13:34 +0200 |
commit | 21bcf16ce23d3df7c3267508012e663e8b443ccd (patch) | |
tree | 35375b8bc4445a517b546f053d73ec2170e8236f /python/vyos/ifconfig.py | |
parent | 8a524a1ae182c7ad9b031c7b0d79273a3df13390 (diff) | |
download | vyos-1x-21bcf16ce23d3df7c3267508012e663e8b443ccd.tar.gz vyos-1x-21bcf16ce23d3df7c3267508012e663e8b443ccd.zip |
Python/ifconfig: T1557: add description for Interface classes
Diffstat (limited to 'python/vyos/ifconfig.py')
-rw-r--r-- | python/vyos/ifconfig.py | 24 |
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') |