def security_group_rule_port(os_port):
    """Translate openstack rule port

    Translate to/from openstack - occi

    :param neutron_type: neutron status
    """
    ports = str(os_port).split('-')
    if ports.__len__() == 1:
        port_min = port_max = ports[0]
    elif ports.__len__() == 2:
        port_min, port_max = ports
    else:
        raise Exception('Port value')
    return port_min, port_max
