neutron/neutron/tests/unit/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
..
common [OVS] Make QoS OVS agent deletion operations more resilient 2020-07-03 10:17:09 +00:00
dhcp Prioritize port create and update ready messages 2020-05-07 15:11:42 +00:00
l2 Clear residual qos rules after l2-agent restarts. 2019-01-24 06:43:01 +00:00
l3 Do not link up HA router gateway in backup node 2020-04-23 21:45:06 +00:00
linux [Security] fix allowed-address-pair 0.0.0.0/0 issue 2020-07-31 13:31:18 +02:00
metadata Remove extra header fields in proxied metadata requests 2020-03-03 20:11:49 +00:00
ovsdb Fixes using SSL OVSDB connection 2018-02-09 04:50:10 +00:00
windows Fix neutron-openvswitch-agent Windows support 2018-11-23 17:13:42 +02:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_agent_extensions_manager.py Refactoring config options for l2 agent ext opts 2016-11-21 19:45:04 +00:00
test_resource_cache.py Merge "Fix race condition with enabling SG on many ports at once" 2018-01-27 10:36:37 +00:00
test_rpc.py Use flake8-import-order plugin 2017-07-05 03:15:27 +00:00
test_securitygroups_rpc.py [Security] fix allowed-address-pair 0.0.0.0/0 issue 2020-07-31 13:31:18 +02:00