summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py
index 0cd27592a..944c1ef82 100644
--- a/python/vyos/ifconfig.py
+++ b/python/vyos/ifconfig.py
@@ -624,6 +624,11 @@ class Interface:
os.remove(self._dhcpv6_lease_file)
+class LoopbackIf(Interface):
+ def __init__(self, ifname=None):
+ super().__init__(ifname, type='loopback')
+
+
class DummyIf(Interface):
def __init__(self, ifname=None):
super().__init__(ifname, type='dummy')