def flowspaces_intersect_and_have_common_nonwildcard(fs1,fs2):
    fields = [("mac_src",48),("mac_dst",48),("ip_src",32),("ip_dst",32),("tp_src",16),("tp_dst",16)]
    intersect = single_fs_intersect(fs1,fs2,FlowSpace)
    if not intersect:
        return False
    
    for field in fields:
        start1 = getattr(fs1,"%s_s"%field[0])
        end1 = getattr(fs1,"%s_e"%field[0])
        start2 = getattr(fs2,"%s_s"%field[0])
        end2 = getattr(fs2,"%s_e"%field[0])
        non_wc1 = (start1 > 0) or (end1 < 2**field[1] - 1)    
        non_wc2 = (start2 > 0) or (end2 < 2**field[1] - 1) 
        if (non_wc1 and non_wc2):
            return True
        
    return False
This is a special purpose function to check if fs1 and f2 not only have intersection
dataset/ETHPy150Open fp7-ofelia/ocf/optin_manager/src/python/openflow/optin_manager/flowspace/helper.py/flowspaces_intersect_and_have_common_nonwildcard