def security_group_rule_type(neutron_type):
    """Translate neutron rule type.

    Translate to/from openstack - occi

    :param neutron_type: neutron status
    """
    if neutron_type == 'ingress':
        return 'inbound'
    elif neutron_type == 'egress':
        return 'outbound'
    elif neutron_type == 'inbound':
        return 'ingress'
    elif neutron_type == 'outbound':
        return 'egress'
    else:
        return None
