For details on how to use network, see Using OpenStack Network
The network high-level interface is available through the network
member of a Connection object. The
network member will only be added if the service is detected.
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)dhcp_agent_hosting_networks(agent, **query)A generator of networks hosted by a DHCP agent.
| Parameters: |
|
|---|---|
| Returns: | A generator of networks |
add_dhcp_agent_to_network(agent, network)Add a DHCP Agent to a network
| Parameters: |
|
|---|---|
| Returns: |
remove_dhcp_agent_from_network(agent, network)Remove a DHCP Agent from a network
| Parameters: |
|
|---|---|
| Returns: |
create_network(**attrs)Create a new network from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a Network,
comprised of the properties on the Network class. |
|---|---|
| Returns: | The results of network creation |
| Return type: | Network |
delete_network(network, ignore_missing=True, if_revision=None)Delete a network
| Parameters: |
|
|---|---|
| Returns: |
|
find_network(name_or_id, ignore_missing=True, **args)Find a single network
| Parameters: |
|
|---|---|
| Returns: | One |
get_network(network)Get a single network
| Parameters: | network – The value can be the ID of a network or a
Network instance. |
|---|---|
| Returns: | One Network |
| Raises: | ResourceNotFound
when no resource can be found. |
networks(**query)Return a generator of networks
| Parameters: | query (kwargs) – Optional query parameters to be sent to limit the resources being returned. Available parameters include:
|
|---|---|
| Returns: | A generator of network objects |
| Return type: | Network |
update_network(network, if_revision=None, **attrs)Update a network
| Parameters: |
|
|---|---|
| Returns: | The updated network |
| Return type: |
find_network_ip_availability(name_or_id, ignore_missing=True, **args)Find IP availability of a network
| Parameters: |
|
|---|---|
| Returns: | One |
get_network_ip_availability(network)Get IP availability of a network
| Parameters: | network – The value can be the ID of a network or a
Network instance. |
|---|---|
| Returns: | One
NetworkIPAvailability |
| Raises: | ResourceNotFound
when no resource can be found. |
network_ip_availabilities(**query)Return a generator of network ip availabilities
| Parameters: | query (kwargs) – Optional query parameters to be sent to limit the resources being returned. Available parameters include:
|
|---|---|
| Returns: | A generator of network ip availability objects |
| Return type: |
NetworkIPAvailability |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_port(**attrs)Create a new port from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a Port,
comprised of the properties on the Port class. |
|---|---|
| Returns: | The results of port creation |
| Return type: | Port |
create_ports(data)Create ports from the list of attributes
| Parameters: | data (list) – List of dicts of attributes which will be used to
create a Port,
comprised of the properties on the Port class. |
|---|---|
| Returns: | A generator of port objects |
| Return type: | Port |
delete_port(port, ignore_missing=True, if_revision=None)Delete a port
| Parameters: |
|
|---|---|
| Returns: |
|
find_port(name_or_id, ignore_missing=True, **args)Find a single port
| Parameters: |
|
|---|---|
| Returns: | One |
get_port(port)Get a single port
| Parameters: | port – The value can be the ID of a port or a
Port instance. |
|---|---|
| Returns: | One Port |
| Raises: | ResourceNotFound
when no resource can be found. |
ports(**query)Return a generator of ports
| Parameters: | query (kwargs) – Optional query parameters to be sent to limit the resources being returned. Available parameters include:
|
|---|---|
| Returns: | A generator of port objects |
| Return type: | Port |
update_port(port, if_revision=None, **attrs)Update a port
| Parameters: |
|
|---|---|
| Returns: | The updated port |
| Return type: |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_router(**attrs)Create a new router from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a Router,
comprised of the properties on the Router class. |
|---|---|
| Returns: | The results of router creation |
| Return type: | Router |
delete_router(router, ignore_missing=True, if_revision=None)Delete a router
| Parameters: |
|
|---|---|
| Returns: |
|
find_router(name_or_id, ignore_missing=True, **args)Find a single router
| Parameters: |
|
|---|---|
| Returns: | One |
get_router(router)Get a single router
| Parameters: | router – The value can be the ID of a router or a
Router instance. |
|---|---|
| Returns: | One Router |
| Raises: | ResourceNotFound
when no resource can be found. |
routers(**query)Return a generator of routers
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of router objects |
| Return type: | Router |
update_router(router, if_revision=None, **attrs)Update a router
| Parameters: |
|
|---|---|
| Returns: | The updated router |
| Return type: |
add_interface_to_router(router, subnet_id=None, port_id=None)Add Interface to a router
| Parameters: |
|
||
|---|---|---|---|
| Returns: | Router with updated interface |
||
| Return type: |
|
remove_interface_from_router(router, subnet_id=None, port_id=None)Remove Interface from a router
| Parameters: |
|
||
|---|---|---|---|
| Returns: | Router with updated interface |
||
| Return type: |
|
add_extra_routes_to_router(router, body)Add extra routes to a router
| Parameters: |
|
||
|---|---|---|---|
| Returns: | Router with updated extra routes |
||
| Return type: |
|
remove_extra_routes_from_router(router, body)Remove extra routes from a router
| Parameters: |
|
||
|---|---|---|---|
| Returns: | Router with updated extra routes |
||
| Return type: |
|
add_gateway_to_router(router, **body)Add Gateway to a router
| Parameters: |
|
||
|---|---|---|---|
| Returns: | Router with updated interface |
||
| Return type: |
|
remove_gateway_from_router(router, **body)Remove Gateway from a router
| Parameters: |
|
||
|---|---|---|---|
| Returns: | Router with updated interface |
||
| Return type: |
|
create_conntrack_helper(router, **attrs)Create a new L3 conntrack helper from attributes
| Parameters: |
|
||
|---|---|---|---|
| Returns: | The results of conntrack helper creation |
||
| Return type: |
|
conntrack_helpers(router, **query)Return a generator of conntrack helpers
| Parameters: |
|
||
|---|---|---|---|
| Returns: | A generator of conntrack helper objects |
||
| Return type: |
|
get_conntrack_helper(conntrack_helper, router)Get a single L3 conntrack helper
| Parameters: |
|
|---|---|
| Returns: | One
|
| Raises: |
|
update_conntrack_helper(conntrack_helper, router, **attrs)Update a L3 conntrack_helper
| Parameters: |
|
||
|---|---|---|---|
| Attrs kwargs: | The attributes to update on the L3 conntrack helper
represented by |
||
| Returns: | The updated conntrack helper |
||
| Return type: |
|
delete_conntrack_helper(conntrack_helper, router, ignore_missing=True)Delete a L3 conntrack_helper
| Parameters: |
|
|---|---|
| Returns: |
|
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_ip(**attrs)Create a new floating ip from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a FloatingIP,
comprised of the properties on the FloatingIP class. |
|---|---|
| Returns: | The results of floating ip creation |
| Return type: | FloatingIP |
delete_ip(floating_ip, ignore_missing=True, if_revision=None)Delete a floating ip
| Parameters: |
|
|---|---|
| Returns: |
|
find_available_ip()Find an available IP
| Returns: | One FloatingIP
or None |
|---|
find_ip(name_or_id, ignore_missing=True, **args)Find a single IP
| Parameters: |
|
|---|---|
| Returns: | One |
get_ip(floating_ip)Get a single floating ip
| Parameters: | floating_ip – The value can be the ID of a floating ip or a
FloatingIP
instance. |
|---|---|
| Returns: | One FloatingIP |
| Raises: | ResourceNotFound
when no resource can be found. |
ips(**query)Return a generator of ips
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of floating IP objects |
| Return type: | FloatingIP |
update_ip(floating_ip, if_revision=None, **attrs)Update a ip
| Parameters: |
|
|---|---|
| Returns: | The updated ip |
| Return type: |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_pool(**attrs)Create a new pool from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a Pool,
comprised of the properties on the Pool class. |
|---|---|
| Returns: | The results of pool creation |
| Return type: | Pool |
delete_pool(pool, ignore_missing=True)Delete a pool
| Parameters: |
|
|---|---|
| Returns: |
|
find_pool(name_or_id, ignore_missing=True, **args)Find a single pool
| Parameters: |
|
|---|---|
| Returns: | One |
get_pool(pool)Get a single pool
| Parameters: | pool – The value can be the ID of a pool or a
Pool instance. |
|---|---|
| Returns: | One Pool |
| Raises: | ResourceNotFound
when no resource can be found. |
pools(**query)Return a generator of pools
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of pool objects |
| Return type: | Pool |
update_pool(pool, **attrs)Update a pool
| Parameters: |
|
|---|---|
| Returns: | The updated pool |
| Return type: |
create_pool_member(pool, **attrs)Create a new pool member from attributes
| Parameters: |
|
|---|---|
| Returns: | The results of pool member creation |
| Return type: |
delete_pool_member(pool_member, pool, ignore_missing=True)Delete a pool member
| Parameters: |
|
|---|---|
| Returns: |
|
find_pool_member(name_or_id, pool, ignore_missing=True, **args)Find a single pool member
| Parameters: |
|
|---|---|
| Returns: | One |
get_pool_member(pool_member, pool)Get a single pool member
| Parameters: |
|
|---|---|
| Returns: | One |
| Raises: |
|
pool_members(pool, **query)Return a generator of pool members
| Parameters: |
|
|---|---|
| Returns: | A generator of pool member objects |
| Return type: |
update_pool_member(pool_member, pool, **attrs)Update a pool member
| Parameters: |
|
|---|---|
| Returns: | The updated pool member |
| Return type: |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)get_auto_allocated_topology(project=None)Get the auto-allocated topology of a given tenant
| Parameters: | project – The value is the ID or name of a project |
|---|---|
| Returns: | The auto-allocated topology |
| Return type: | AutoAllocatedTopology |
delete_auto_allocated_topology(project=None, ignore_missing=False)Delete auto-allocated topology
| Parameters: |
|
|---|---|
| Returns: |
|
validate_auto_allocated_topology(project=None)Validate the resources for auto allocation
| Parameters: | project – The value is the ID or name of a project |
|---|---|
| Returns: | Whether all resources are correctly configured or not |
| Return type: | ValidateTopology |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_security_group(**attrs)Create a new security group from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a SecurityGroup,
comprised of the properties on the SecurityGroup class. |
|---|---|
| Returns: | The results of security group creation |
| Return type: | SecurityGroup |
delete_security_group(security_group, ignore_missing=True, if_revision=None)Delete a security group
| Parameters: |
|
|---|---|
| Returns: |
|
find_security_group(name_or_id, ignore_missing=True, **args)Find a single security group
| Parameters: |
|
|---|---|
| Returns: | One |
get_security_group(security_group)Get a single security group
| Parameters: | security_group – The value can be the ID of a security group or a
SecurityGroup
instance. |
|---|---|
| Returns: | One
SecurityGroup |
| Raises: | ResourceNotFound
when no resource can be found. |
security_groups(**query)Return a generator of security groups
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of security group objects |
| Return type: | SecurityGroup |
update_security_group(security_group, if_revision=None, **attrs)Update a security group
| Parameters: |
|
|---|---|
| Returns: | The updated security group |
| Return type: |
create_security_group_rule(**attrs)Create a new security group rule from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create a
SecurityGroupRule, comprised of the properties on the
SecurityGroupRule class. |
|---|---|
| Returns: | The results of security group rule creation |
| Return type: | SecurityGroupRule |
create_security_group_rules(data)Create new security group rules from the list of attributes
| Parameters: | data (list) – List of dicts of attributes which will be used to
create a SecurityGroupRule,
comprised of the properties on the SecurityGroupRule
class. |
|---|---|
| Returns: | A generator of security group rule objects |
| Return type: | SecurityGroupRule |
delete_security_group_rule(security_group_rule, ignore_missing=True, if_revision=None)Delete a security group rule
| Parameters: |
|
|---|---|
| Returns: |
|
find_security_group_rule(name_or_id, ignore_missing=True, **args)Find a single security group rule
| Parameters: |
|
|---|---|
| Returns: | One |
get_security_group_rule(security_group_rule)Get a single security group rule
| Parameters: | security_group_rule – The value can be the ID of a security group rule or a
SecurityGroupRule instance. |
|---|---|
| Returns: | SecurityGroupRule |
| Raises: | ResourceNotFound
when no resource can be found. |
security_group_rules(**query)Return a generator of security group rules
| Parameters: | query (kwargs) – Optional query parameters to be sent to limit the resources being returned. Available parameters include:
|
|---|---|
| Returns: | A generator of security group rule objects |
| Return type: |
SecurityGroupRule |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)availability_zones(**query)Return a generator of availability zones
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of availability zone objects |
| Return type: | AvailabilityZone |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_address_scope(**attrs)Create a new address scope from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a AddressScope,
comprised of the properties on the AddressScope class. |
|---|---|
| Returns: | The results of address scope creation |
| Return type: | AddressScope |
delete_address_scope(address_scope, ignore_missing=True)Delete an address scope
| Parameters: |
|
|---|---|
| Returns: |
|
find_address_scope(name_or_id, ignore_missing=True, **args)Find a single address scope
| Parameters: |
|
|---|---|
| Returns: | One |
get_address_scope(address_scope)Get a single address scope
| Parameters: | address_scope – The value can be the ID of an address scope or a
AddressScope instance. |
|---|---|
| Returns: | One AddressScope |
| Raises: | ResourceNotFound
when no resource can be found. |
address_scopes(**query)Return a generator of address scopes
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of address scope objects |
| Return type: | AddressScope |
update_address_scope(address_scope, **attrs)Update an address scope
| Parameters: |
|
|---|---|
| Returns: | The updated address scope |
| Return type: |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)delete_quota(quota, ignore_missing=True)Delete a quota (i.e. reset to the default quota)
| Parameters: |
|
|---|---|
| Returns: |
|
get_quota(quota, details=False)Get a quota
| Parameters: |
|
|---|---|
| Returns: | One |
| Raises: |
|
get_quota_default(quota)Get a default quota
| Parameters: | quota – The value can be the ID of a default quota or a
QuotaDefault
instance. The ID of a default quota is the same
as the project ID for the default quota. |
|---|---|
| Returns: | One QuotaDefault |
| Raises: | ResourceNotFound
when no resource can be found. |
quotas(**query)Return a generator of quotas
| Parameters: | query (dict) – Optional query parameters to be sent to limit the resources being returned. Currently no query parameter is supported. |
|---|---|
| Returns: | A generator of quota objects |
| Return type: | Quota |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_qos_bandwidth_limit_rule(qos_policy, **attrs)Create a new bandwidth limit rule
| Parameters: |
|
|---|---|
| Returns: | The results of resource creation |
| Return type: |
|
delete_qos_bandwidth_limit_rule(qos_rule, qos_policy, ignore_missing=True)Delete a bandwidth limit rule
| Parameters: |
|
|---|---|
| Returns: |
|
find_qos_bandwidth_limit_rule(qos_rule_id, qos_policy, ignore_missing=True, **args)Find a bandwidth limit rule
| Parameters: |
|
|---|---|
| Returns: | One |
get_qos_bandwidth_limit_rule(qos_rule, qos_policy)Get a single bandwidth limit rule
| Parameters: |
|
|---|---|
| Returns: | One |
| Raises: |
|
qos_bandwidth_limit_rules(qos_policy, **query)Return a generator of bandwidth limit rules
| Parameters: |
|
|---|---|
| Returns: | A generator of bandwidth limit rule objects |
| Return type: |
|
update_qos_bandwidth_limit_rule(qos_rule, qos_policy, **attrs)Update a bandwidth limit rule
| Parameters: |
|
|---|---|
| Attrs kwargs: | The attributes to update on the bandwidth limit rule
represented by |
| Returns: | The updated minimum bandwidth rule |
| Return type: |
|
create_qos_dscp_marking_rule(qos_policy, **attrs)Create a new QoS DSCP marking rule
| Parameters: |
|
|---|---|
| Returns: | The results of router creation |
| Return type: |
|
delete_qos_dscp_marking_rule(qos_rule, qos_policy, ignore_missing=True)Delete a QoS DSCP marking rule
| Parameters: |
|
|---|---|
| Returns: |
|
find_qos_dscp_marking_rule(qos_rule_id, qos_policy, ignore_missing=True, **args)Find a QoS DSCP marking rule
| Parameters: |
|
|---|---|
| Returns: | One |
get_qos_dscp_marking_rule(qos_rule, qos_policy)Get a single QoS DSCP marking rule
| Parameters: |
|
|---|---|
| Returns: | One |
| Raises: |
|
qos_dscp_marking_rules(qos_policy, **query)Return a generator of QoS DSCP marking rules
| Parameters: |
|
|---|---|
| Returns: | A generator of QoS DSCP marking rule objects |
| Return type: |
|
update_qos_dscp_marking_rule(qos_rule, qos_policy, **attrs)Update a QoS DSCP marking rule
| Parameters: |
|
|---|---|
| Attrs kwargs: | The attributes to update on the QoS DSCP marking rule
represented by |
| Returns: | The updated QoS DSCP marking rule |
| Return type: |
|
create_qos_minimum_bandwidth_rule(qos_policy, **attrs)Create a new minimum bandwidth rule
| Parameters: |
|
|---|---|
| Returns: | The results of resource creation |
| Return type: |
|
delete_qos_minimum_bandwidth_rule(qos_rule, qos_policy, ignore_missing=True)Delete a minimum bandwidth rule
| Parameters: |
|
|---|---|
| Returns: |
|
find_qos_minimum_bandwidth_rule(qos_rule_id, qos_policy, ignore_missing=True, **args)Find a minimum bandwidth rule
| Parameters: |
|
|---|---|
| Returns: | One |
get_qos_minimum_bandwidth_rule(qos_rule, qos_policy)Get a single minimum bandwidth rule
| Parameters: |
|
|---|---|
| Returns: | One |
| Raises: |
|
qos_minimum_bandwidth_rules(qos_policy, **query)Return a generator of minimum bandwidth rules
| Parameters: |
|
|---|---|
| Returns: | A generator of minimum bandwidth rule objects |
| Return type: |
|
update_qos_minimum_bandwidth_rule(qos_rule, qos_policy, **attrs)Update a minimum bandwidth rule
| Parameters: |
|
|---|---|
| Attrs kwargs: | The attributes to update on the minimum bandwidth rule
represented by |
| Returns: | The updated minimum bandwidth rule |
| Return type: |
|
create_qos_policy(**attrs)Create a new QoS policy from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a
QoSPolicy, comprised of the properties on the
QoSPolicy class. |
|---|---|
| Returns: | The results of QoS policy creation |
| Return type: | QoSPolicy |
delete_qos_policy(qos_policy, ignore_missing=True)Delete a QoS policy
| Parameters: |
|
|---|---|
| Returns: |
|
find_qos_policy(name_or_id, ignore_missing=True, **args)Find a single QoS policy
| Parameters: |
|
|---|---|
| Returns: | One |
get_qos_policy(qos_policy)Get a single QoS policy
| Parameters: | qos_policy – The value can be the ID of a QoS policy or a
QoSPolicy
instance. |
|---|---|
| Returns: | One QoSPolicy |
| Raises: | ResourceNotFound
when no resource can be found. |
qos_policies(**query)Return a generator of QoS policies
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of QoS policy objects |
| Return type: | QoSPolicy |
update_qos_policy(qos_policy, **attrs)Update a QoS policy
| Parameters: | qos_policy – Either the id of a QoS policy or a
QoSPolicy
instance. |
|---|---|
| Attrs kwargs: | The attributes to update on the QoS policy represented
by value. |
| Returns: | The updated QoS policy |
| Return type: | QoSPolicy |
find_qos_rule_type(rule_type_name, ignore_missing=True)Find a single QoS rule type details
| Parameters: |
|
|---|---|
| Returns: | One |
get_qos_rule_type(qos_rule_type)Get details about single QoS rule type
| Parameters: | qos_rule_type – The value can be the name of a QoS policy
rule type or a
QoSRuleType
instance. |
|---|---|
| Returns: | One QoSRuleType |
| Raises: | ResourceNotFound
when no resource can be found. |
qos_rule_types(**query)Return a generator of QoS rule types
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of QoS rule type objects |
| Return type: | QoSRuleType |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)agents(**query)Return a generator of network agents
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of agents |
| Return type: | Agent |
delete_agent(agent, ignore_missing=True)Delete a network agent
| Parameters: |
|
|---|---|
| Returns: |
|
get_agent(agent)Get a single network agent
| Parameters: | agent – The value can be the ID of a agent or a
Agent instance. |
|---|---|
| Returns: | One Agent |
| Return type: | Agent |
| Raises: | ResourceNotFound
when no resource can be found. |
update_agent(agent, **attrs)Update a network agent
| Parameters: |
|
|---|---|
| Returns: | One |
| Return type: |
network_hosting_dhcp_agents(network, **query)A generator of DHCP agents hosted on a network.
| Parameters: |
|
|---|---|
| Returns: | A generator of hosted DHCP agents |
routers_hosting_l3_agents(router, **query)Return a generator of L3 agent hosting a router
| Parameters: |
|
|---|---|
| Returns: | A generator of Router L3 Agents |
| Return type: |
|
agent_hosted_routers(agent, **query)Return a generator of routers hosted by a L3 agent
| Parameters: |
|
|---|---|
| Returns: | A generator of routers |
| Return type: |
|
add_router_to_agent(agent, router)Add router to L3 agent
| Parameters: |
|
|---|---|
| Returns: | Agent with attached router |
| Return type: |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_rbac_policy(**attrs)Create a new RBAC policy from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create a
RBACPolicy,
comprised of the properties on the RBACPolicy class. |
|---|---|
| Returns: | The results of RBAC policy creation |
| Return type: | RBACPolicy |
delete_rbac_policy(rbac_policy, ignore_missing=True)Delete a RBAC policy
| Parameters: |
|
|---|---|
| Returns: |
|
find_rbac_policy(rbac_policy, ignore_missing=True, **args)Find a single RBAC policy
| Parameters: |
|
|---|---|
| Returns: | One
|
get_rbac_policy(rbac_policy)Get a single RBAC policy
| Parameters: | rbac_policy – The value can be the ID of a RBAC policy or a
RBACPolicy instance. |
|---|---|
| Returns: | One RBACPolicy |
| Raises: | ResourceNotFound
when no resource can be found. |
rbac_policies(**query)Return a generator of RBAC policies
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of rbac objects |
| Return type: | RBACPolicy |
update_rbac_policy(rbac_policy, **attrs)Update a RBAC policy
| Parameters: |
|
|---|---|
| Returns: | The updated RBAC policy |
| Return type: |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_listener(**attrs)Create a new listener from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a Listener,
comprised of the properties on the Listener class. |
|---|---|
| Returns: | The results of listener creation |
| Return type: | Listener |
delete_listener(listener, ignore_missing=True)Delete a listener
| Parameters: |
|
|---|---|
| Returns: |
|
find_listener(name_or_id, ignore_missing=True, **args)Find a single listener
| Parameters: |
|
|---|---|
| Returns: | One |
get_listener(listener)Get a single listener
| Parameters: | listener – The value can be the ID of a listener or a
Listener
instance. |
|---|---|
| Returns: | One Listener |
| Raises: | ResourceNotFound
when no resource can be found. |
listeners(**query)Return a generator of listeners
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of listener objects |
| Return type: | Listener |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_subnet(**attrs)Create a new subnet from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a Subnet,
comprised of the properties on the Subnet class. |
|---|---|
| Returns: | The results of subnet creation |
| Return type: | Subnet |
delete_subnet(subnet, ignore_missing=True, if_revision=None)Delete a subnet
| Parameters: |
|
|---|---|
| Returns: |
|
find_subnet(name_or_id, ignore_missing=True, **args)Find a single subnet
| Parameters: |
|
|---|---|
| Returns: | One |
get_subnet(subnet)Get a single subnet
| Parameters: | subnet – The value can be the ID of a subnet or a
Subnet instance. |
|---|---|
| Returns: | One Subnet |
| Raises: | ResourceNotFound
when no resource can be found. |
subnets(**query)Return a generator of subnets
| Parameters: | query (dict) – Optional query parameters to be sent to limit the resources being returned. Available parameters include:
|
|---|---|
| Returns: | A generator of subnet objects |
| Return type: | Subnet |
update_subnet(subnet, if_revision=None, **attrs)Update a subnet
| Parameters: |
|
|---|---|
| Returns: | The updated subnet |
| Return type: |
create_subnet_pool(**attrs)Create a new subnet pool from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a SubnetPool,
comprised of the properties on the SubnetPool class. |
|---|---|
| Returns: | The results of subnet pool creation |
| Return type: | SubnetPool |
delete_subnet_pool(subnet_pool, ignore_missing=True)Delete a subnet pool
| Parameters: |
|
|---|---|
| Returns: |
|
find_subnet_pool(name_or_id, ignore_missing=True, **args)Find a single subnet pool
| Parameters: |
|
|---|---|
| Returns: | One |
get_subnet_pool(subnet_pool)Get a single subnet pool
| Parameters: | subnet_pool – The value can be the ID of a subnet pool or a
SubnetPool instance. |
|---|---|
| Returns: | One SubnetPool |
| Raises: | ResourceNotFound
when no resource can be found. |
subnet_pools(**query)Return a generator of subnet pools
| Parameters: | query (kwargs) – Optional query parameters to be sent to limit the resources being returned. Available parameters include:
|
|---|---|
| Returns: | A generator of subnet pool objects |
| Return type: | SubnetPool |
update_subnet_pool(subnet_pool, **attrs)Update a subnet pool
| Parameters: |
|
|---|---|
| Returns: | The updated subnet pool |
| Return type: |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_load_balancer(**attrs)Create a new load balancer from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a LoadBalancer,
comprised of the properties on the LoadBalancer class. |
|---|---|
| Returns: | The results of load balancer creation |
| Return type: | LoadBalancer |
delete_load_balancer(load_balancer, ignore_missing=True)Delete a load balancer
| Parameters: |
|
|---|---|
| Returns: |
|
find_load_balancer(name_or_id, ignore_missing=True, **args)Find a single load balancer
| Parameters: |
|
|---|---|
| Returns: | One |
get_load_balancer(load_balancer)Get a single load balancer
| Parameters: | load_balancer – The value can be the ID of a load balancer or a
LoadBalancer
instance. |
|---|---|
| Returns: | One LoadBalancer |
| Raises: | ResourceNotFound
when no resource can be found. |
load_balancers(**query)Return a generator of load balancers
| Parameters: | query (dict) – Optional query parameters to be sent to limit the resources being returned. |
|---|---|
| Returns: | A generator of load balancer objects |
| Return type: | LoadBalancer |
update_load_balancer(load_balancer, **attrs)Update a load balancer
| Parameters: |
|
|---|---|
| Returns: | The updated load balancer |
| Return type: |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_health_monitor(**attrs)Create a new health monitor from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a HealthMonitor,
comprised of the properties on the HealthMonitor class. |
|---|---|
| Returns: | The results of health monitor creation |
| Return type: | HealthMonitor |
delete_health_monitor(health_monitor, ignore_missing=True)Delete a health monitor
| Parameters: |
|
|---|---|
| Returns: |
|
find_health_monitor(name_or_id, ignore_missing=True, **args)Find a single health monitor
| Parameters: |
|
|---|---|
| Returns: | One |
get_health_monitor(health_monitor)Get a single health monitor
| Parameters: | health_monitor – The value can be the ID of a health monitor or a
HealthMonitor
instance. |
|---|---|
| Returns: | One
HealthMonitor |
| Raises: | ResourceNotFound
when no resource can be found. |
health_monitors(**query)Return a generator of health monitors
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of health monitor objects |
| Return type: | HealthMonitor |
update_health_monitor(health_monitor, **attrs)Update a health monitor
| Parameters: |
|
|---|---|
| Returns: | The updated health monitor |
| Return type: |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_metering_label(**attrs)Create a new metering label from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a MeteringLabel,
comprised of the properties on the MeteringLabel class. |
|---|---|
| Returns: | The results of metering label creation |
| Return type: | MeteringLabel |
delete_metering_label(metering_label, ignore_missing=True)Delete a metering label
| Parameters: |
|
|---|---|
| Returns: |
|
find_metering_label(name_or_id, ignore_missing=True, **args)Find a single metering label
| Parameters: |
|
|---|---|
| Returns: | One |
get_metering_label(metering_label)Get a single metering label
| Parameters: | metering_label – The value can be the ID of a metering label or a
MeteringLabel
instance. |
|---|---|
| Returns: | One
MeteringLabel |
| Raises: | ResourceNotFound
when no resource can be found. |
metering_labels(**query)Return a generator of metering labels
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of metering label objects |
| Return type: | MeteringLabel |
update_metering_label(metering_label, **attrs)Update a metering label
| Parameters: |
|
|---|---|
| Returns: | The updated metering label |
| Return type: |
create_metering_label_rule(**attrs)Create a new metering label rule from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create a
MeteringLabelRule, comprised of the properties on
the MeteringLabelRule class. |
|---|---|
| Returns: | The results of metering label rule creation |
| Return type: | MeteringLabelRule |
delete_metering_label_rule(metering_label_rule, ignore_missing=True)Delete a metering label rule
| Parameters: |
|
|---|---|
| Returns: |
|
find_metering_label_rule(name_or_id, ignore_missing=True, **args)Find a single metering label rule
| Parameters: |
|
|---|---|
| Returns: | One |
get_metering_label_rule(metering_label_rule)Get a single metering label rule
| Parameters: | metering_label_rule – The value can be the ID of a metering label rule or a
MeteringLabelRule instance. |
|---|---|
| Returns: | One
MeteringLabelRule |
| Raises: | ResourceNotFound
when no resource can be found. |
metering_label_rules(**query)Return a generator of metering label rules
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of metering label rule objects |
| Return type: |
MeteringLabelRule |
update_metering_label_rule(metering_label_rule, **attrs)Update a metering label rule
| Parameters: |
|
|---|---|
| Returns: | The updated metering label rule |
| Return type: |
|
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_segment(**attrs)Create a new segment from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a Segment,
comprised of the properties on the Segment class. |
|---|---|
| Returns: | The results of segment creation |
| Return type: | Segment |
delete_segment(segment, ignore_missing=True)Delete a segment
| Parameters: |
|
|---|---|
| Returns: |
|
find_segment(name_or_id, ignore_missing=True, **args)Find a single segment
| Parameters: |
|
|---|---|
| Returns: | One |
get_segment(segment)Get a single segment
| Parameters: | segment – The value can be the ID of a segment or a
Segment
instance. |
|---|---|
| Returns: | One Segment |
| Raises: | ResourceNotFound
when no resource can be found. |
segments(**query)Return a generator of segments
| Parameters: | query (kwargs) – Optional query parameters to be sent to limit the resources being returned. Available parameters include:
|
|---|---|
| Returns: | A generator of segment objects |
| Return type: | Segment |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_flavor(**attrs)Create a new network service flavor from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a Flavor,
comprised of the properties on the Flavor class. |
|---|---|
| Returns: | The results of flavor creation |
| Return type: | Flavor |
delete_flavor(flavor, ignore_missing=True)Delete a network service flavor
| Parameters: |
|
|---|---|
| Returns: |
|
find_flavor(name_or_id, ignore_missing=True, **args)Find a single network service flavor
| Parameters: |
|
|---|---|
| Returns: | One |
get_flavor(flavor)Get a single network service flavor
| Parameters: | flavor – The value can be the ID of a flavor or a
Flavor instance. |
|---|---|
| Returns: | One Flavor |
| Raises: | ResourceNotFound
when no resource can be found. |
update_flavor(flavor, **attrs)Update a network service flavor
| Parameters: | flavor – Either the id of a flavor or a
Flavor instance. |
|---|---|
| Attrs kwargs: | The attributes to update on the flavor represented
by value. |
| Returns: | The updated flavor |
| Return type: | Flavor |
flavors(**query)Return a generator of network service flavors
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of flavor objects |
| Return type: | Flavor |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)associate_flavor_with_service_profile(flavor, service_profile)Associate network flavor with service profile.
| Parameters: |
|
|---|---|
| Returns: |
disassociate_flavor_from_service_profile(flavor, service_profile)Disassociate network flavor from service profile.
| Parameters: |
|
|---|---|
| Returns: |
create_service_profile(**attrs)Create a new network service flavor profile from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a ServiceProfile,
comprised of the properties on the ServiceProfile
class. |
|---|---|
| Returns: | The results of service profile creation |
| Return type: | ServiceProfile |
delete_service_profile(service_profile, ignore_missing=True)Delete a network service flavor profile
| Parameters: |
|
|---|---|
| Returns: |
|
find_service_profile(name_or_id, ignore_missing=True, **args)Find a single network service flavor profile
| Parameters: |
|
|---|---|
| Returns: | One |
get_service_profile(service_profile)Get a single network service flavor profile
| Parameters: | service_profile – The value can be the ID of a service_profile or
a ServiceProfile
instance. |
|---|---|
| Returns: | One ServiceProfile |
| Raises: | ResourceNotFound
when no resource can be found. |
service_profiles(**query)Return a generator of network service flavor profiles
| Parameters: | query (dict) –
|
|---|---|
| Returns: | A generator of service profile objects |
| Return type: | ServiceProfile |
update_service_profile(service_profile, **attrs)Update a network flavor service profile
| Parameters: | service_profile – Either the id of a service profile or a
ServiceProfile instance. |
|---|---|
| Attrs kwargs: | The attributes to update on the service profile
represented by value. |
| Returns: | The updated service profile |
| Return type: | ServiceProfile |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_vpn_service(**attrs)Create a new vpn service from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a VPNService,
comprised of the properties on the VPNService class. |
|---|---|
| Returns: | The results of vpn service creation |
| Return type: | VPNService |
delete_vpn_service(vpn_service, ignore_missing=True)Delete a vpn service
| Parameters: |
|
|---|---|
| Returns: |
|
find_vpn_service(name_or_id, ignore_missing=True, **args)Find a single vpn service
| Parameters: |
|
|---|---|
| Returns: | One |
get_vpn_service(vpn_service)Get a single vpn service
| Parameters: | vpn_service – The value can be the ID of a vpn service or a
VPNService
instance. |
|---|---|
| Returns: | One
VPNService |
| Raises: | ResourceNotFound
when no resource can be found. |
vpn_services(**query)Return a generator of vpn services
| Parameters: | query (dict) – Optional query parameters to be sent to limit the resources being returned. |
|---|---|
| Returns: | A generator of vpn service objects |
| Return type: | VPNService |
update_vpn_service(vpn_service, **attrs)Update a vpn service
| Parameters: |
|
|---|---|
| Returns: | The updated vpnservice |
| Return type: |
|
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_vpn_ipsec_site_connection(**attrs)Create a new ipsec site connection from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create a
IPSecSiteConnection, comprised of the properties on the
IPSecSiteConnection class. |
|---|---|
| Returns: | The results of ipsec site connection creation :rtype:
IPSecSiteConnection |
find_vpn_ipsec_site_connection(name_or_id, ignore_missing=True, **args)Find a single ipsec site connection
| Parameters: |
|
|---|---|
| Returns: | One |
get_vpn_ipsec_site_connection(ipsec_site_connection)Get a single ipsec site connection
| Parameters: | ipsec_site_connection – The value can be the ID of an ipsec site
connection or a IPSecSiteConnection instance. |
|---|---|
| Returns: | One
IPSecSiteConnection |
| Raises: | ResourceNotFound
when no resource can be found. |
vpn_ipsec_site_connections(**query)Return a generator of ipsec site connections
| Parameters: | query (dict) – Optional query parameters to be sent to limit the resources being returned. |
|---|---|
| Returns: | A generator of ipsec site connection objects |
| Return type: |
IPSecSiteConnection |
update_vpn_ipsec_site_connection(ipsec_site_connection, **attrs)Update a ipsec site connection
| Ipsec_site_connection: | |
|---|---|
Either the id of an ipsec site connection or
a
IPSecSiteConnection instance. |
|
| Parameters: | attrs (dict) – The attributes to update on the ipsec site
connection represented by ipsec_site_connection. |
| Returns: | The updated ipsec site connection |
| Return type: |
IPSecSiteConnection |
delete_vpn_ipsec_site_connection(ipsec_site_connection, ignore_missing=True)Delete a ipsec site connection
| Parameters: |
|
|---|---|
| Returns: |
|
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_vpn_ikepolicy(**attrs)Create a new ike policy from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create a
IkePolicy, comprised of
the properties on the IkePolicy class. |
|---|---|
| Returns: | The results of ike policy creation :rtype:
IkePolicy |
find_vpn_ikepolicy(name_or_id, ignore_missing=True, **args)Find a single ike policy
| Parameters: |
|
|---|---|
| Returns: | One |
get_vpn_ikepolicy(ikepolicy)Get a single ike policy
| Parameters: | ikepolicy – The value can be the ID of an ikepolicy or a
IkePolicy instance. |
|---|---|
| Returns: | One IkePolicy |
| Return type: | IkePolicy |
| Raises: | ResourceNotFound when no
resource can be found. |
vpn_ikepolicies(**query)Return a generator of ike policy
| Parameters: | query (dict) – Optional query parameters to be sent to limit the resources being returned. |
|---|---|
| Returns: | A generator of ike policy objects |
| Return type: | IkePolicy |
update_vpn_ikepolicy(ikepolicy, **attrs)Update a ike policy
| Ikepolicy: | Either the id of an ike policy or a
IkePolicy instance. |
|---|---|
| Parameters: | attrs (dict) – The attributes to update on the ike policy
represented by ikepolicy. |
| Returns: | The updated ike policy |
| Return type: | IkePolicy |
delete_vpn_ikepolicy(ikepolicy, ignore_missing=True)Delete a ikepolicy
| Parameters: |
|
|---|---|
| Returns: |
|
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)find_extension(name_or_id, ignore_missing=True, **args)Find a single extension
| Parameters: |
|
|---|---|
| Returns: | One |
extensions(**query)Return a generator of extensions
| Parameters: | query (dict) – Optional query parameters to be sent to limit the resources being returned. Currently no parameter is supported. |
|---|---|
| Returns: | A generator of extension objects |
| Return type: | Extension |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)service_providers(**query)Return a generator of service providers
| Parameters: | query (kwargs) – Optional query parameters to be sent to limit the resources being returned. |
|---|---|
| Returns: | A generator of service provider objects |
| Return type: | ServiceProvider |
openstack.network.v2._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)create_local_ip(**attrs)Create a new local ip from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a LocalIP,
comprised of the properties on the LocalIP class. |
|---|---|
| Returns: | The results of local ip creation |
| Return type: | LocalIP |
delete_local_ip(local_ip, ignore_missing=True, if_revision=None)Delete a local ip
| Parameters: |
|
|---|---|
| Returns: |
|
find_local_ip(name_or_id, ignore_missing=True, **args)Find a local IP
| Parameters: |
|
|---|---|
| Returns: | One |
get_local_ip(local_ip)Get a single local ip
| Parameters: | local_ip – The value can be the ID of a local ip or a
LocalIP
instance. |
|---|---|
| Returns: | One LocalIP |
| Raises: | ResourceNotFound
when no resource can be found. |
local_ips(**query)Return a generator of local ips
| Parameters: | query (dict) – Optional query parameters to be sent to limit the resources being returned.
|
|---|---|
| Returns: | A generator of local ip objects |
| Return type: | LocalIP |
update_local_ip(local_ip, if_revision=None, **attrs)Update a local ip
| Parameters: |
|
|---|---|
| Returns: | The updated ip |
| Return type: |
create_local_ip_association(local_ip, **attrs)Create a new local ip association from attributes
| Parameters: |
|
|---|---|
| Returns: | The results of local ip association creation |
| Return type: |
|
delete_local_ip_association(local_ip, fixed_port_id, ignore_missing=True, if_revision=None)Delete a local ip association
| Parameters: |
|
|---|---|
| Returns: |
|
find_local_ip_association(name_or_id, local_ip, ignore_missing=True, **args)Find a local ip association
| Parameters: |
|
|---|---|
| Returns: | One |
get_local_ip_association(local_ip_association, local_ip)Get a single local ip association
| Parameters: |
|
|---|---|
| Returns: | One |
| Raises: |
|
local_ip_associations(local_ip, **query)Return a generator of local ip associations
| Parameters: |
|
|---|---|
| Returns: | A generator of local ip association objects |
| Return type: |
|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.