def is_port_trusted(port):
 return port['device_owner'].startswith(n_const.DEVICE_OWNER_NETWORK_PREFIX)

def is_port_trusted ( port ) : return port [ 'device_owner' ] . startswith ( n_const . DEVICE_OWNER_NETWORK_PREFIX )
used to determine if port can be trusted not to attack network .