Gets the details of a particular network
"""
LOG.debug("get_network_details() called\n")
- self._invoke_device_plugins(self._func_name(), [tenant_id, net_id])
network = db.network_get(net_id)
+ self._invoke_device_plugins(self._func_name(), [tenant_id, net_id])
ports_list = network[const.NETWORKPORTS]
ports_on_net = []
for port in ports_list:
Virtual Network.
"""
LOG.debug("rename_network() called\n")
+ network = db.network_get(net_id)
self._invoke_device_plugins(self._func_name(), [tenant_id, net_id,
new_name])
network = db.network_rename(tenant_id, net_id, new_name)
specified Virtual Network.
"""
LOG.debug("get_all_ports() called\n")
- self._invoke_device_plugins(self._func_name(), [tenant_id, net_id])
network = db.network_get(net_id)
+ self._invoke_device_plugins(self._func_name(), [tenant_id, net_id])
ports_list = network[const.NETWORKPORTS]
ports_on_net = []
for port in ports_list:
then the port can be deleted.
"""
LOG.debug("delete_port() called\n")
+ network = db.network_get(net_id)
self._invoke_device_plugins(self._func_name(), [tenant_id, net_id,
port_id])
db.port_destroy(net_id, port_id)
Updates the state of a port on the specified Virtual Network.
"""
LOG.debug("update_port() called\n")
+ network = db.network_get(net_id)
self._invoke_device_plugins(self._func_name(), [tenant_id, net_id,
port_id, port_state])
self._validate_port_state(port_state)
that is attached to this particular port.
"""
LOG.debug("get_port_details() called\n")
+ network = db.network_get(net_id)
self._invoke_device_plugins(self._func_name(), [tenant_id, net_id,
port_id])
port = db.port_get(net_id, port_id)
specified Virtual Network.
"""
LOG.debug("plug_interface() called\n")
+ network = db.network_get(net_id)
self._invoke_device_plugins(self._func_name(), [tenant_id, net_id,
port_id,
remote_interface_id])
specified Virtual Network.
"""
LOG.debug("unplug_interface() called\n")
+ network = db.network_get(net_id)
self._invoke_device_plugins(self._func_name(), [tenant_id, net_id,
port_id])
db.port_unset_attachment(net_id, port_id)