Skip to content

Commit 7a35504

Browse files
authored
[202012] [CoPP] Add always_enabled field (#9999)
Add the "always_enabled" field to copp_cfg.j2 file, in order to allow traps without an entry in features table, to be installed automatically. This is a cherry-pick of #9302 - Why I did it In order to allow traps without an entry in features table, to be installed automatically. - How I did it Add always_enabled field to traps without a feature
1 parent a564fc8 commit 7a35504

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

files/image_config/copp/copp_cfg.j2

+9-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"trap_priority":"4",
1414
"queue": "4"
1515
},
16-
"queue4_group2": {
16+
"queue4_group2": {
1717
"trap_action":"copy",
1818
"trap_priority":"4",
1919
"queue": "4",
@@ -69,11 +69,13 @@
6969
},
7070
"lacp": {
7171
"trap_ids": "lacp",
72-
"trap_group": "queue4_group1"
72+
"trap_group": "queue4_group1",
73+
"always_enabled": "true"
7374
},
7475
"arp": {
7576
"trap_ids": "arp_req,arp_resp,neigh_discovery",
76-
"trap_group": "queue4_group2"
77+
"trap_group": "queue4_group2",
78+
"always_enabled": "true"
7779
},
7880
"lldp": {
7981
"trap_ids": "lldp",
@@ -87,11 +89,13 @@
8789
{% endif %}
8890
"udld": {
8991
"trap_ids": "udld",
90-
"trap_group": "queue4_group3"
92+
"trap_group": "queue4_group3",
93+
"always_enabled": "true"
9194
},
9295
"ip2me": {
9396
"trap_ids": "ip2me",
94-
"trap_group": "queue1_group1"
97+
"trap_group": "queue1_group1",
98+
"always_enabled": "true"
9599
},
96100
"nat": {
97101
"trap_ids": "src_nat_miss,dest_nat_miss",

0 commit comments

Comments
 (0)