neutron/neutron/tests/functional/agent
LIU Yulong bd6203b2c7 [Security] fix allowed-address-pair 0.0.0.0/0 issue
When add allowed-address-pair 0.0.0.0/0 to one port, it will
unexpectedly open all others' protocol under same security
group. IPv6 has the same problem.

The root cause is the openflow rules calculation of the
security group, it will unexpectedly allow all IP(4&6)
traffic to get through.

For openvswitch openflow firewall, this patch adds a source
mac address match for the allowed-address-pair which has
prefix lenght 0, that means all ethernet packets from this
mac will be accepted. It exactly will meet the request of
accepting any IP address from the configured VM.

Test result shows that the remote security group and
allowed address pair works:
1. Port has 0.0.0.0/0 allowed-address-pair clould send any
   IP (src) packet out.
2. Port has x.x.x.x/y allowed-address-pair could be accepted
   for those VMs under same security group.
3. Ports under same network can reach each other (remote
   security group).
4. Protocol port number could be accessed only when there
   has related rule.

Conflicts:
    neutron/tests/unit/agent/linux/openvswitch_firewall/test_rules.py

Closes-bug: #1867119
Change-Id: I2e3aa7c400d7bb17cc117b65faaa160b41013dde
(cherry picked from commit 00298fe6e8)
2020-07-31 13:31:18 +02:00
..
l2 Add "igmp_snooping_enable" config option for OVS agent 2020-06-12 15:03:47 +00:00
l3 Dynamically increase l3 router process queue green pool size 2020-05-18 16:27:00 -04:00
linux Check the namespace is ready in test_mtu_update tests 2019-09-16 09:31:34 +00:00
windows Fix pep8 errors 2018-04-12 01:31:55 +09:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_dhcp_agent.py Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
test_firewall.py [Security] fix allowed-address-pair 0.0.0.0/0 issue 2020-07-31 13:31:18 +02:00
test_l2_lb_agent.py LB Trunk: Stop matching MAC of subport to port model 2017-03-01 14:10:00 +00:00
test_l2_ovs_agent.py Stop OVS agent before starting it again 2019-08-12 12:11:28 +00:00
test_ovs_flows.py of_interface: allow install_instructions to accept string actions 2017-06-30 15:55:33 +09:00
test_ovs_lib.py Add "igmp_snooping_enable" config option for OVS agent 2020-06-12 15:03:47 +00:00