https://wiki.openstack.org/wiki/Neutron/SecurityGroups
The API extension is the ‘front’ end portion of the code, which handles defining a REST-ful API, which is used by projects.
The Security Group API extension adds a number of methods to the database layer of Neutron
This portion of the code handles processing requests from projects, after they have been stored in the database. It involves messaging all the L2 agents running on the compute nodes, and modifying the IPTables rules on each hypervisor.
prepare_port_filter
takes a port
argument, which is a dictionary
object that contains information about the port - including the security_group_rules
prepare_port_filter
appends the port to an internal dictionary, filtered_ports
which is used to track the internal state.IptablesFirewallDriver
has a method to convert security group rules into iptables statements.Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.