From 56855a9a2c3ba357373a2b18db4b8c70c44ff0b5 Mon Sep 17 00:00:00 2001 From: Ying Xie Date: Thu, 14 Apr 2022 23:43:37 +0000 Subject: [PATCH 1/3] [copp cfg] enable copp trap for a couple more devices Signed-off-by: Ying Xie --- 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 3ae61c3b5e4c..adb87c2d6f25 100755 --- a/files/image_config/copp/copp_cfg.j2 +++ b/files/image_config/copp/copp_cfg.j2 @@ -81,7 +81,7 @@ "trap_ids": "lldp", "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'] is not in ["ToRRouter", "EPMS", "MgmtTsTor"]) %} +{% if not (DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined and DEVICE_METADATA['localhost']['type'] is defined and DEVICE_METADATA['localhost']['type'] is not in ["ToRRouter", "EPMS", "MgmtTsToR", "MgmtToRRouter", "BackEndToRRouter"]) %} "dhcp_relay": { "trap_ids": "dhcp,dhcpv6", "trap_group": "queue4_group3" From 6a8c5f1e596766016b662388f33e15b107723aef Mon Sep 17 00:00:00 2001 From: Ying Xie Date: Fri, 15 Apr 2022 00:27:15 +0000 Subject: [PATCH 2/3] use single quote --- 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 adb87c2d6f25..3e8c0294549c 100755 --- a/files/image_config/copp/copp_cfg.j2 +++ b/files/image_config/copp/copp_cfg.j2 @@ -81,7 +81,7 @@ "trap_ids": "lldp", "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'] is not in ["ToRRouter", "EPMS", "MgmtTsToR", "MgmtToRRouter", "BackEndToRRouter"]) %} +{% if not (DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined and DEVICE_METADATA['localhost']['type'] is defined and DEVICE_METADATA['localhost']['type'] is not in ['ToRRouter', 'EPMS', 'MgmtTsToR', 'MgmtToRRouter', 'BackEndToRRouter']) %} "dhcp_relay": { "trap_ids": "dhcp,dhcpv6", "trap_group": "queue4_group3" From 2f14fe89968c80837d22067a5da3e997de3b5add Mon Sep 17 00:00:00 2001 From: Ying Xie Date: Fri, 15 Apr 2022 01:09:03 +0000 Subject: [PATCH 3/3] remove backend ToR --- 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 3e8c0294549c..1b84b6df98da 100755 --- a/files/image_config/copp/copp_cfg.j2 +++ b/files/image_config/copp/copp_cfg.j2 @@ -81,7 +81,7 @@ "trap_ids": "lldp", "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'] is not in ['ToRRouter', 'EPMS', 'MgmtTsToR', 'MgmtToRRouter', 'BackEndToRRouter']) %} +{% if not (DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined and DEVICE_METADATA['localhost']['type'] is defined and DEVICE_METADATA['localhost']['type'] is not in ['ToRRouter', 'EPMS', 'MgmtTsToR', 'MgmtToRRouter']) %} "dhcp_relay": { "trap_ids": "dhcp,dhcpv6", "trap_group": "queue4_group3"