From 091bcd7d15b1cae7f180e6b09dec5153bb62c3b8 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Wed, 27 Aug 2025 14:13:25 +0200 Subject: [PATCH] Add ETHERTYPE_FIELD_SIZE constant Currently in Neutron we are using hardcoded value "40" in various places where "ehtertype" column in database is defined. We should avoid using numeric values directly so this patch is adding new constant which represents size of the "ethertype" field in the database. Change-Id: I2241b6c6fee7df6fdf25e54c7692a79fa1ce25ea Signed-off-by: Slawek Kaplonski --- 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 966728396..dada51417 100644 --- a/neutron_lib/db/constants.py +++ b/neutron_lib/db/constants.py @@ -24,6 +24,7 @@ MAC_ADDR_FIELD_SIZE = 32 RESOURCE_TYPE_FIELD_SIZE = 255 FQDN_FIELD_SIZE = 255 AZ_HINTS_DB_LEN = 255 +ETHERTYPE_FIELD_SIZE = 40 # Alembic branches EXPAND_BRANCH = 'expand'