mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
iface: add support for ifaceLinkPrivFlags.LOOPBACK
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
@@ -63,6 +63,7 @@ class ifaceLinkPrivFlags():
|
|||||||
BRIDGE_VLAN_AWARE = 0x01000
|
BRIDGE_VLAN_AWARE = 0x01000
|
||||||
BRIDGE_VXLAN = 0x10000
|
BRIDGE_VXLAN = 0x10000
|
||||||
ADDRESS_VIRTUAL_SLAVE = 0x100000
|
ADDRESS_VIRTUAL_SLAVE = 0x100000
|
||||||
|
LOOPBACK = 0x1000000
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_str(cls, flag):
|
def get_str(cls, flag):
|
||||||
|
@@ -493,6 +493,9 @@ class ifupdownMain(ifupdownBase):
|
|||||||
upperifaceobj.link_type = ifaceLinkType.LINK_NA
|
upperifaceobj.link_type = ifaceLinkType.LINK_NA
|
||||||
ifaceobj.link_type = ifaceLinkType.LINK_NA
|
ifaceobj.link_type = ifaceLinkType.LINK_NA
|
||||||
|
|
||||||
|
if not ifaceobj.link_kind and ifaceobj.name == "lo":
|
||||||
|
ifaceobj.link_privflags |= ifaceLinkPrivFlags.LOOPBACK
|
||||||
|
|
||||||
def dump_iface_dependency_info(self):
|
def dump_iface_dependency_info(self):
|
||||||
""" debug funtion to print raw dependency
|
""" debug funtion to print raw dependency
|
||||||
info - lower and upper devices"""
|
info - lower and upper devices"""
|
||||||
|
Reference in New Issue
Block a user