1
0
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:
Roopa Prabhu
2016-11-29 19:55:32 -08:00
parent 6a7f69a5a6
commit ae330408d8
2 changed files with 4 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ class ifaceLinkPrivFlags():
BRIDGE_VLAN_AWARE = 0x01000
BRIDGE_VXLAN = 0x10000
ADDRESS_VIRTUAL_SLAVE = 0x100000
LOOPBACK = 0x1000000
@classmethod
def get_str(cls, flag):

View File

@@ -493,6 +493,9 @@ class ifupdownMain(ifupdownBase):
upperifaceobj.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):
""" debug funtion to print raw dependency
info - lower and upper devices"""