From 73adf55f35211737b069e24dd42c97c7c2e46ac8 Mon Sep 17 00:00:00 2001 From: Manjeet Singh Bhatia Date: Tue, 3 Jan 2017 22:23:25 +0000 Subject: [PATCH] Add FQDN_FIELD_SIZE constant FQDN_MAX_LEN has been defined at multiple locations in neutron tree, I encountered a situation where use of this constant from neutron/extensions/dns.py ended up in cyclic import. The better solution would be to have it in neutron lib and use it everywhere. Related-Bug: #1653780 Change-Id: Ifd13f6d85bd7c7f5f803eaa8aac0e16c0f0edff7 --- neutron_lib/db/constants.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neutron_lib/db/constants.py b/neutron_lib/db/constants.py index 57a32665e..4dc241f8d 100644 --- a/neutron_lib/db/constants.py +++ b/neutron_lib/db/constants.py @@ -22,6 +22,7 @@ STATUS_FIELD_SIZE = 16 IP_ADDR_FIELD_SIZE = 64 # large enough to hold a v4 or v6 address MAC_ADDR_FIELD_SIZE = 32 RESOURCE_TYPE_FIELD_SIZE = 255 +FQDN_FIELD_SIZE = 255 # Alembic branches EXPAND_BRANCH = 'expand'