Package yakumo :: Package neutron :: Package v2 :: Module router :: Class Manager
[hide private]
[frames] | no frames]

Class Manager

source code

  object --+    
           |    
base.Manager --+
               |
              Manager

Manager class for routers in Networking V2 API

Nested Classes [hide private]
  resource_class
Resource class for routers in Networking V2 API
Instance Methods [hide private]
yakumo.neutron.v2.router.Resource
create(self, name='__UNDEF__', routes='__UNDEF__', is_enabled='__UNDEF__')
Create a router
source code

Inherited from base.Manager: __init__, find, find_one, get, get_empty, list

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  service_type = 'network'
  _attr_mapping = [('id', 'id', <yakumo.mapper.NoopClass object ...
  _json_resource_key = 'router'
  _json_resources_key = 'routers'
  _url_resource_path = '/v2.0/routers'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

create(self, name='__UNDEF__', routes='__UNDEF__', is_enabled='__UNDEF__')

source code 

Create a router

Parameters:
  • name (str) - Router name
  • routes (str) - Routings
  • is_enabled (bool) - Whether the router is enabled
Returns: yakumo.neutron.v2.router.Resource
Created router
Overrides: base.Manager.create

Class Variable Details [hide private]

_attr_mapping

Value:
[('id', 'id', mapper.Noop), ('name', 'name', mapper.Noop), ('status', \
'status', mapper.Noop), ('routes', 'routes', mapper.Noop), ('project',\
 'tenant_id', mapper.Resource('project')), ('is_enabled', 'admin_state\
_up', mapper.Noop), ('external_gateway_info', 'external_gateway_info',\
 mapper.Dict(EXTERNAL_GATEWAY_INFO_MAPPING)), ('is_distributed', 'dist\
ributed', mapper.Noop), ('is_ha', 'ha', mapper.Noop),]