From 6dfc11375078d72dcd10032e31a4d71f5aee6fb3 Mon Sep 17 00:00:00 2001 From: "Georgios P. Katsikas" Date: Thu, 15 May 2025 07:30:56 +0300 Subject: [PATCH] fix: add missing JSON attribute in P4 fabric-tna commons --- .../p4_fabric_tna_commons/p4_fabric_tna_commons.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/service/service/service_handlers/p4_fabric_tna_commons/p4_fabric_tna_commons.py b/src/service/service/service_handlers/p4_fabric_tna_commons/p4_fabric_tna_commons.py index a97bce07f..1b1feb9c6 100644 --- a/src/service/service/service_handlers/p4_fabric_tna_commons/p4_fabric_tna_commons.py +++ b/src/service/service/service_handlers/p4_fabric_tna_commons/p4_fabric_tna_commons.py @@ -38,6 +38,7 @@ LOGGER = logging.getLogger(__name__) SWITCH_INFO = "switch_info" ARCH = "arch" DPID = "dpid" +IFACE = "iface" MAC = "mac" IP = "ip" PORT = "port" # Dataplane port @@ -129,7 +130,7 @@ MIRROR_TYPE_INVALID = 0 MIRROR_TYPE_INT_REPORT = 1 # VLAN -VLAN_DEF = 4094 +DEF_VLAN = 4094 # Supported Ethernet types ETHER_TYPE_IPV4 = "0x0800" @@ -216,7 +217,7 @@ def rules_set_up_port_ingress( assert chk_vlan_id(vlan_id), "Invalid VLAN ID to configure ingress port" # VLAN support if 1 - vlan_is_valid = 1 if vlan_id != VLAN_DEF else 0 + vlan_is_valid = 1 if vlan_id != DEF_VLAN else 0 rule_no = cache_rule(TABLE_INGRESS_VLAN, action) -- GitLab