daemon/core/misc/xmlwriter1.py
def inOtherNetwork(netObj):
    '''
    Determine if CORE considers a given network object to be part of another network.
    Note: CORE considers layer 2 devices to be their own networks. However, if a l2 device
    is connected to another device, it is possible that one of its ports belong to the other
    l2 device's network (thus, "othernet").
    '''
    for netif in netObj.netifs(sort=True):
        if hasattr(netif,"othernet"):
            if netif.othernet.objid != netObj.objid:
                return True
    return False

    Determine if CORE considers a given network object to be part of another network.
    Note: CORE considers layer 2 devices to be their own networks. However, if a l2 device
    is connected to another device, it is possible that one of its ports belong to the other
    l2 device's network (thus, "othernet").
    
Determine if CORE considers a given network object to be part of another network.
Note: CORE considers layer 2 devices to be their own networks. However, if a l2 device
is connected to another device, it is possible that one of its ports belong to the other
l2 device's network (thus, "othernet").
Determine if CORE considers a given network object to be part of another network . Note : CORE considers layer 2 devices to be their own networks . However if a l2 device is connected to another device it is possible that one of its ports belong to the other l2 device ' s network ( thus " othernet " ) .
def inOtherNetwork(netObj):
    for netif in netObj.netifs(sort=True):
        if hasattr(netif,"othernet"):
            if netif.othernet.objid != netObj.objid:
                return True
    return False
def inOtherNetwork ( netObj ) : for netif in netObj . netifs ( sort = True ) : if hasattr ( netif , "othernet" ) : if netif . othernet . objid != netObj . objid : return True return False
Determine if CORE considers a given network object to be part of another network.
Determine if CORE considers a given network object to be part of another network .
'''
    Determine if CORE considers a given network object to be part of another network.
    Note: CORE considers layer 2 devices to be their own networks. However, if a l2 device
    is connected to another device, it is possible that one of its ports belong to the other
    l2 device's network (thus, "othernet").
    '''
netObj