'Verifies that a supplied service string has correct format
The string format for port lockdown is PROTOCOL:PORT. This method
will verify that the provided input matches the allowed protocols
and the port ranges before submitting to BIG-IP.
The only allowed exceptions to this rule are the following values
* all
* default
* none
These are special cases that are handled differently in the API.
"all" is set as a string, "default" is set as a one item list, and
"none" removes the key entirely from the REST API.
:raises F5ModuleError:'

def verify_services(self):

    result = []
    for svc in self.params['allow_service']:
        if (svc in ['all', 'none', 'default']):
            result = [svc]
            break
        tmp = svc.split(':')
        if (tmp[0] not in ALLOWED_PROTOCOLS):
            raise F5ModuleError(("The    provided    protocol    '%s'    is    invalid" % tmp[0]))
        try:
            port = int(tmp[1])
        except Exception:
            raise F5ModuleError(("The    provided    port    '%s'    is    not    a    number" % tmp[1]))
        if ((port < 0) or (port > 65535)):
            raise F5ModuleError(("The    provided    port    '%s'    must    be    between    0    and    65535" % port))
        else:
            result.append(svc)
    return set(result)
