def get_id_from_ns_name(ns_name):
    """Parses identifier from prefix-identifier

    :param ns_name: The name of a namespace
    :returns: Identifier or None if there is no - to end the prefix
    """
    dash_index = ns_name.find('-')
    if dash_index <= 0:
        return ns_name[dash_index + 1:]
dataset/ETHPy150Open openstack/neutron/neutron/agent/l3/namespaces.py/get_id_from_ns_name/swapped operands of `<=`