summaryrefslogtreecommitdiff
path: root/neutron/db/network_dhcp_agent_binding/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'neutron/db/network_dhcp_agent_binding/models.py')
-rw-r--r--neutron/db/network_dhcp_agent_binding/models.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/neutron/db/network_dhcp_agent_binding/models.py b/neutron/db/network_dhcp_agent_binding/models.py
index d3147df53f..d30f61a65b 100644
--- a/neutron/db/network_dhcp_agent_binding/models.py
+++ b/neutron/db/network_dhcp_agent_binding/models.py
@@ -14,12 +14,10 @@ from neutron_lib.db import model_base
import sqlalchemy as sa
from sqlalchemy import orm
+from neutron.common import _constants as n_const
from neutron.db.models import agent as agent_model
-LOWEST_BINDING_INDEX = 1
-
-
class NetworkDhcpAgentBinding(model_base.BASEV2):
"""Represents binding between neutron networks and DHCP agents."""
@@ -38,5 +36,6 @@ class NetworkDhcpAgentBinding(model_base.BASEV2):
sa.ForeignKey("agents.id",
ondelete='CASCADE'),
primary_key=True)
- binding_index = sa.Column(sa.Integer, nullable=False,
- server_default=str(LOWEST_BINDING_INDEX))
+ binding_index = sa.Column(
+ sa.Integer, nullable=False,
+ server_default=str(n_const.LOWEST_AGENT_BINDING_INDEX))