novaclient.v2.networks module

Network interface.

class novaclient.v2.networks.Network(manager, info, loaded=False, resp=None)

Bases: Resource

A network as defined in the Networking (Neutron) API.

Populate and bind to a manager.

Parameters:
  • manager – BaseManager object

  • info – dictionary representing resource attributes

  • loaded – prevent lazy-loading if set to True

  • resp – Response or list of Response objects

HUMAN_ID = True
NAME_ATTR = 'name'
class novaclient.v2.networks.NeutronManager(api)

Bases: Manager

A manager for name -> id lookups for neutron networks.

This uses neutron directly from service catalog. Do not use it for anything else besides that. You have been warned.

find_network(name)

Find a network by name (user provided input).

resource_class

alias of Network