The networking_cisco.plugins.cisco.extensions.routertype
Module¶
-
exception
networking_cisco.plugins.cisco.extensions.routertype.
HostingDeviceTemplateUsedByRouterType
(**kwargs)¶ Bases:
neutron_lib.exceptions.NeutronException
-
message
= u’Router type %(type)s already defined for Hosting device template with id %(type)s’¶
-
-
exception
networking_cisco.plugins.cisco.extensions.routertype.
MultipleRouterTypes
(**kwargs)¶ Bases:
neutron_lib.exceptions.NeutronException
-
message
= u’Multiple router type with same name %(name)s exist. Id must be used to specify router type.’¶
-
-
exception
networking_cisco.plugins.cisco.extensions.routertype.
NoSuchHostingDeviceTemplateForRouterType
(**kwargs)¶ Bases:
neutron_lib.exceptions.NeutronException
-
message
= u’No hosting device template with id %(type)s exists’¶
-
-
exception
networking_cisco.plugins.cisco.extensions.routertype.
RouterTypeAlreadyDefined
(**kwargs)¶ Bases:
neutron_lib.exceptions.NeutronException
-
message
= u’Router type %(type)s already exists’¶
-
-
exception
networking_cisco.plugins.cisco.extensions.routertype.
RouterTypeHasRouters
(**kwargs)¶ Bases:
neutron_lib.exceptions.NeutronException
-
message
= u’Router type %(type)s cannot be deleted since routers of that type exists’¶
-
-
exception
networking_cisco.plugins.cisco.extensions.routertype.
RouterTypeInUse
(**kwargs)¶ Bases:
neutron_lib.exceptions.InUse
-
message
= u’Router type %(id)s in use.’¶
-
-
exception
networking_cisco.plugins.cisco.extensions.routertype.
RouterTypeNotFound
(**kwargs)¶ Bases:
neutron_lib.exceptions.NotFound
-
message
= u’Router type %(id)s does not exist’¶
-
-
class
networking_cisco.plugins.cisco.extensions.routertype.
Routertype
¶ Bases:
neutron_lib.api.extensions.ExtensionDescriptor
Extension class to define different types of Neutron routers.
This class is used by Neutron’s extension framework to support definition of different types of Neutron Routers.
Attribute ‘router_type:id’ is the uuid or name of a certain router type. It can be set during creation of Neutron router. If a Neutron router is moved (by admin user) to a hosting device of a different hosting device type, the router type of the Neutron router will also change. Non-admin users can request that a Neutron router’s type is changed.
To create a router of router type <name>:
(shell) router-create <router_name> –router_type:id <uuid_or_name>-
classmethod
get_alias
()¶
-
classmethod
get_description
()¶
-
get_extended_resources
(version)¶
-
classmethod
get_name
()¶
-
classmethod
get_namespace
()¶
-
classmethod
get_resources
()¶ Returns Ext Resources.
-
classmethod
get_updated
()¶
-
classmethod
-
class
networking_cisco.plugins.cisco.extensions.routertype.
RoutertypePluginBase
¶ Bases:
object
REST API to manage router types.
All methods except listing require admin context.
-
create_routertype
(context, routertype)¶ Creates a router type. Also binds it to the specified hosting device template.
-
delete_routertype
(context, id)¶ Deletes a router type.
-
get_routertype
(context, id, fields=None)¶ Lists defined router type.
-
get_routertypes
(context, filters=None, fields=None, sorts=None, limit=None, marker=None, page_reverse=False)¶ Lists defined router types.
-
update_routertype
(context, id, routertype)¶ Updates a router type.
-