def is_router_interface_port(port):
 return _is_owner_router_interface(port['device_owner'])

def is_router_interface_port ( port ) : return _is_owner_router_interface ( port [ 'device_owner' ] )
based on the port attributes determines is it a router interface .