]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Adding loadbalanacerv2 device owner constant to neutron constants
authorAnand Shanmugam <anand1712@gmail.com>
Thu, 21 May 2015 09:03:33 +0000 (02:03 -0700)
committerAnand Shanmugam <anand1712@gmail.com>
Thu, 21 May 2015 09:09:22 +0000 (02:09 -0700)
The neutron constants doesn't have the constant for device owner
lbaasv2. This fix adds the constant. This is needed for the bug 1430394
as we need to check the device owner when the port is to be deleted.
Partial-Bug: #1430394

Change-Id: I222a9f44c5ed6c879feb2fb9e04047ae8f2c7745

neutron/common/constants.py

index 1539ed61aa89d71f78b83ae1545b4b133b13e721..d935273e52764b85a3f8bce656c37d7e50266652 100644 (file)
@@ -39,6 +39,7 @@ DEVICE_OWNER_DVR_INTERFACE = "network:router_interface_distributed"
 DEVICE_OWNER_AGENT_GW = "network:floatingip_agent_gateway"
 DEVICE_OWNER_ROUTER_SNAT = "network:router_centralized_snat"
 DEVICE_OWNER_LOADBALANCER = "neutron:LOADBALANCER"
+DEVICE_OWNER_LOADBALANCERV2 = "neutron:LOADBALANCERV2"
 
 # Collection used to identify devices owned by router interfaces.
 # DEVICE_OWNER_ROUTER_HA_INTF is a special case and so is not included.