From d334c2cef7a82f6702cddb13c662ecc89bf5327f Mon Sep 17 00:00:00 2001 From: Stephen Sun Date: Sat, 19 Mar 2022 20:13:48 +0800 Subject: [PATCH] Align entry name in copp_cfg.j2 with feature name There is a logic in copp manager which loads copp items only if the feature is enabled. It requires the feature name aligns with copp item name otherwise the copp item can not be loaded. Currently, dhcp copp item is used by feature dhcp_relay but the name doesn't align. This is to fix it. Signed-off-by: Stephen Sun --- files/image_config/copp/copp_cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/image_config/copp/copp_cfg.j2 b/files/image_config/copp/copp_cfg.j2 index ab9ce2776ca..b7a83b312e0 100755 --- a/files/image_config/copp/copp_cfg.j2 +++ b/files/image_config/copp/copp_cfg.j2 @@ -82,7 +82,7 @@ "trap_group": "queue4_group3" }, {% if not (DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined and DEVICE_METADATA['localhost']['type'] is defined and DEVICE_METADATA['localhost']['type'] != "ToRRouter") %} - "dhcp": { + "dhcp_relay": { "trap_ids": "dhcp,dhcpv6", "trap_group": "queue4_group3" },