def _validate_rpc_ip(rpc_server_ip):
 if (not is_valid_ipv4(rpc_server_ip)):
  raise NetworkControllerError(desc='Invalid rpc ip address.')
 return rpc_server_ip

def _validate_rpc_ip ( rpc_server_ip ) : if ( not is_valid_ipv4 ( rpc_server_ip ) ) : raise NetworkControllerError ( desc = 'Invalid rpc ip address.' ) return rpc_server_ip
validates given ip for use as rpc host bind address .