Bases: object
A mix-in that enable SecurityGroup agent
support in plugin implementations.
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 |
Bases: quantum.db.securitygroups_db.SecurityGroupDbMixin
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 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 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.