

@classmethod
def validate_rpc_port(cls, port):
    'Validates give port for use as rpc server port.\n        '
    if (not port):
        raise ApplicationException(desc='Invalid rpc port number.')
    if isinstance(port, str):
        port = int(port)
    return port

dataset/ETHPy150Open osrg/ryu/ryu/services/protocols/bgp/application.py RyuBGPSpeaker.validate_rpc_port/original