neutron/neutron/tests/unit/agent
Slawek Kaplonski 88f2073526 Fix mismatch of tags in dnsmasq options
In some cases (I don't know exactly how) it may happend that
when new subnet, e.g. IPv6 is added to the network, subnets
can change their order based on uuid.
As before this patch we were using in dnsmasq options tags like
"tagN" for subnets (where N was just number based on position of
the subnet in the sorted list) it could happend sometimes that
dnsmasq ended up with mismatch of tags configured in "dhcp-range"
cmd option and set in "opts" file. That caused problem with serving
proper DHCP options to the vms.

This patch fixes this issue by using tags with format:
"subnet-<uuid>" where uuid is id of the subnet. That was it's not
based on order of subnets in the list and will always match with tag
configured in opts file for specific subnet.

As we was currently using port id as tag for "per port" DHCP options,
this patch changes that to use tags like "port-<uuid>" to make it
consistent with options configured "per subnet" and to make it easier
to debug from where each option comes.

Change-Id: Idaea33d62fa31edd7149ec916ec314438375724a
Partial-Bug: #1848738
2019-10-23 14:19:07 +00:00
..
common [Trivial]Remove unused helper get_port_external_ids/mac 2019-08-14 09:17:53 +08:00
dhcp Update DHCP port information during setup 2019-09-11 07:06:40 +00:00
l2 Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
l3 Remove get_external_network_id for router 2019-09-20 13:31:32 +00:00
linux Fix mismatch of tags in dnsmasq options 2019-10-23 14:19:07 +00:00
metadata Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04: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 Remove unused global_refresh_firewall 2019-09-07 23:27:43 +00:00