neutron/neutron/ipam
LIU Yulong 20f8271b6b Prevent some L3 ports change IP address
Some L3 ports can directly modify the IP address now,
but there are some types of device_owner, for instance
network:router_centralized_snat, should not allow to
change the IP address, otherwise it will increase L3
agent code complexity.

Since router public gateway port is related to the
external network, and this port can be used for some
service, like VPN. So after this patch we will only
allow the gateway port to update the IP address
directly, aka device_owner network:router_gateway.

The following l3 router ports will not be allowed to
directly update the IP address:
  network:ha_router_replicated_interface
  network:router_centralized_snat
  network:router_ha_interface
  network:router_interface
  network:router_interface_distributed

Remove one unit test case since it will not occur in
neutron.

Change-Id: I2890a71abc82cb781b601afb879bdcca10e39257
Closes-Bug: #1796824
2018-12-13 14:24:23 +00:00
..
drivers Add bulk IP address assignment to ipam driver 2018-11-19 11:29:13 -05:00
__init__.py Make IPAM more pythonic 2015-07-09 17:33:17 +00:00
driver.py Remove unused variables ‘LOG' 2017-11-23 04:33:33 +08:00
exceptions.py Prevent some L3 ports change IP address 2018-12-13 14:24:23 +00:00
requests.py Add bulk IP address assignment to ipam driver 2018-11-19 11:29:13 -05:00
subnet_alloc.py use context manager from neutron-lib 2018-10-24 07:18:46 -06:00
utils.py Fix W503 pep8 warnings 2018-04-17 14:22:58 +00:00