def is_prefix_subset(orig_prefixes, new_prefixes):
 orig_set = netaddr.IPSet(orig_prefixes)
 new_set = netaddr.IPSet(new_prefixes)
 return orig_set.issubset(new_set)

def is_prefix_subset ( orig_prefixes , new_prefixes ) : orig_set = netaddr . IPSet ( orig_prefixes ) new_set = netaddr . IPSet ( new_prefixes ) return orig_set . issubset ( new_set )
check whether orig_prefixes is subset of new_prefixes .