neutron/neutron/tests/unit/agent
LIU Yulong 551130e9f4 [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.

Closes-bug: #1867119
Change-Id: I2e3aa7c400d7bb17cc117b65faaa160b41013dde
(cherry picked from commit 00298fe6e8)
2020-07-31 11:22:31 +00:00
..
common [OVS] Make QoS OVS agent deletion operations more resilient 2020-06-23 13:16:37 +00:00
dhcp Merge "Prioritize port create and update ready messages" into stable/train 2020-04-16 00:15:28 +00:00
l2 Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
l3 Do not link up HA router gateway in backup node 2020-04-06 11:45:18 +00:00
linux [Security] fix allowed-address-pair 0.0.0.0/0 issue 2020-07-31 11:22:31 +00:00
metadata Fix return correct cache when reusing port 2020-04-08 12:08:13 +00:00
ovsdb Add native OVSDB implementation for bridge monitor 2018-12-03 16:09:06 +00:00
windows remove neutron.common.exceptions 2019-02-01 14:35:00 -07: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 Initialize modifiable list of resources in CacheBackedPluginApi. 2019-07-26 11:51:39 +00:00
test_securitygroups_rpc.py [Security] fix allowed-address-pair 0.0.0.0/0 issue 2020-07-31 11:22:31 +00:00