This Page

The quantum.plugins.midonet.midonet_lib Module

class quantum.plugins.midonet.midonet_lib.ChainManager(mido_api)
create_for_sg(tenant_id, sg_id, sg_name)

Create a new chain for security group.

Creating a security group creates a pair of chains in MidoNet, one for inbound and the other for outbound.

create_router_chains(tenant_id, router_id)

Create a new chain on a router.

Creates chains for the router and returns the same dictionary as get_router_chains() returns.

delete_for_sg(tenant_id, sg_id, sg_name)

Delete a chain mapped to a security group.

Delete a SG means deleting all the chains (inbound and outbound) associated with the SG in MidoNet.

get_router_chains(tenant_id, router_id)

Get router chains.

Returns a dictionary that has in/out chain resources key’ed with ‘in’ and ‘out’ respectively, given the tenant_id and the router_id passed in in the arguments.

get_sg_chains(tenant_id, sg_id)

Get a list of chains mapped to a security group.

class quantum.plugins.midonet.midonet_lib.PortGroupManager(mido_api)
create(tenant_id, sg_id, sg_name)
delete(tenant_id, sg_id, sg_name)
get_for_sg(tenant_id, sg_id)
class quantum.plugins.midonet.midonet_lib.RuleManager(mido_api)
OS_SG_KEY = 'os_sg_rule_id'
create_for_sg_rule(rule)
delete_for_sg_rule(rule)
quantum.plugins.midonet.midonet_lib.chain_names(sg_id, sg_name)

Get inbound and outbound chain names.

quantum.plugins.midonet.midonet_lib.port_group_name(sg_id, sg_name)

Construct the security group ID used as chain identifier in MidoNet.

quantum.plugins.midonet.midonet_lib.sg_label(sg_id, sg_name)

Construct the security group ID used as chain identifier in MidoNet.