diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-08-31 13:08:45 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-08-31 13:08:45 +0200 |
commit | e461fcf77c8b071a26e5c57021890bb96ccb7504 (patch) | |
tree | 11d9a67364efe41c7a7686b81ac4bb6b699e0f3e /python/vyos | |
parent | 3dc08ceaf2c9574133f3b4ff94822b65789a2139 (diff) | |
download | vyos-1x-e461fcf77c8b071a26e5c57021890bb96ccb7504.tar.gz vyos-1x-e461fcf77c8b071a26e5c57021890bb96ccb7504.zip |
loopback: T1601: migrate from pyroute2 -> vyos.ifconfig
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/ifconfig.py | 5 |
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') |