This Page

The quantum.db.securitygroups_rpc_base Module

class quantum.db.securitygroups_rpc_base.SecurityGroupServerRpcCallbackMixin

Bases: object

A mix-in that enable SecurityGroup agent

support in plugin implementations.

security_group_rules_for_devices(context, **kwargs)

return security group rules for each port

also convert remote_group_id rule to source_ip_prefix and dest_ip_prefix rule

Params devices:list of devices
Returns:port correspond to the devices with security group rules
class quantum.db.securitygroups_rpc_base.SecurityGroupServerRpcMixin

Bases: quantum.db.securitygroups_db.SecurityGroupDbMixin

create_security_group_rule(context, security_group_rule)
create_security_group_rule_bulk(context, security_group_rule)
delete_security_group_rule(context, sgrid)
is_security_group_member_updated(context, original_port, updated_port)

check security group member updated or not

This method returns a flag which indicates request notification is required and does not perform notification itself. It is because another changes for the port may require notification.

notify_security_groups_member_updated(context, port)

notify update event of security group members

The agent setups the iptables rule to allow ingress packet from the dhcp server (as a part of provider rules), so we need to notify an update of dhcp server ip address to the plugin agent. security_groups_provider_updated() just notifies that an event occurs and the plugin agent fetches the update provider rule in the other RPC call (security_group_rules_for_devices).

update_security_group_on_port(context, id, port, original_port, updated_port)

update security groups on port

This method returns a flag which indicates request notification is required and does not perform notification itself. It is because another changes for the port may require notification.