def port_etcd_key(port): """ Determine what the etcd key is for a port. """ return key_for_endpoint(port['binding:host_id'], "openstack", port['device_id'], port['id'])
def port_etcd_key(self, port): return key_for_endpoint(port['binding:host_id'], "openstack", port['device_id'], port['id'])
def port_etcd_key(self, port): return key_for_endpoint(port['binding:host_id'], "openstack", port['id'], # FIXME Should be the VM's ID. port['id'])