return networks
def get_network_info(self, context, **kwargs):
- """Retrieve and return a extended information about a network."""
+ """Retrieve and return extended information about a network."""
network_id = kwargs.get('network_id')
host = kwargs.get('host')
LOG.debug('Network %(network_id)s requested from '
try:
return int(data)
except (ValueError, TypeError):
- msg = _("'%s' is not a integer") % data
+ msg = _("'%s' is not an integer") % data
raise n_exc.InvalidInput(error_message=msg)
return address_scope.ip_version
def create_address_scope(self, context, address_scope):
- """Create a address scope."""
+ """Create an address scope."""
a_s = address_scope['address_scope']
tenant_id = self._get_tenant_id_for_create(context, a_s)
address_scope_id = a_s.get('id') or uuidutils.generate_uuid()
def _check_update_deletes_allowed_address_pairs(self, port):
"""Determine if request deletes address pair.
- Return True if port has as a allowed address pair and its value
+ Return True if port has an allowed address pair and its value
is either [] or not is_attr_set, otherwise return False
"""
return (addr_pair.ADDRESS_PAIRS in port['port'] and
"""Delete agent.
Agents register themselves on reporting state.
- But if a agent does not report its status
- for a long time (for example, it is dead for ever. ),
+ But if an agent does not report its status
+ for a long time (for example, it is dead forever. ),
admin can remove it. Agents must be disabled before
being removed.
"""
generating it can be passed as optional keyword arguments.
:param address_type: the type of address to generate.
- It could be a eui-64 address, a random IPv6 address, or
- a ipv4 link-local address.
+ It could be an eui-64 address, a random IPv6 address, or
+ an ipv4 link-local address.
For the Kilo release only eui-64 addresses will be supported.
"""
address_generator = self._address_generators.get(address_type)
'''Bind port to net_uuid/lsw_id and install flow for inbound traffic
to vm.
- :param port: a ovs_lib.VifPort object.
+ :param port: an ovs_lib.VifPort object.
:param net_uuid: the net_uuid this port is to be associated with.
:param network_type: the network type ('gre', 'vlan', 'flat', 'local')
:param physical_network: the physical network for 'vlan' or 'flat'
def port_dead(self, port, log_errors=True):
'''Once a port has no binding, put it on the "dead vlan".
- :param port: a ovs_lib.VifPort object.
+ :param port: an ovs_lib.VifPort object.
'''
# Don't kill a port if it's already dead
cur_tag = self.int_br.db_get_val("Port", port.port_name, "tag",