[CoPP] Add always_enabled field (#9302)
*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 commit is contained in:
parent
87d18eb6c3
commit
be7f31e6d2
@ -69,11 +69,13 @@
|
||||
},
|
||||
"lacp": {
|
||||
"trap_ids": "lacp",
|
||||
"trap_group": "queue4_group1"
|
||||
"trap_group": "queue4_group1",
|
||||
"always_enabled": "true"
|
||||
},
|
||||
"arp": {
|
||||
"trap_ids": "arp_req,arp_resp,neigh_discovery",
|
||||
"trap_group": "queue4_group2"
|
||||
"trap_group": "queue4_group2",
|
||||
"always_enabled": "true"
|
||||
},
|
||||
"lldp": {
|
||||
"trap_ids": "lldp",
|
||||
@ -85,11 +87,13 @@
|
||||
},
|
||||
"udld": {
|
||||
"trap_ids": "udld",
|
||||
"trap_group": "queue4_group3"
|
||||
"trap_group": "queue4_group3",
|
||||
"always_enabled": "true"
|
||||
},
|
||||
"ip2me": {
|
||||
"trap_ids": "ip2me",
|
||||
"trap_group": "queue1_group1"
|
||||
"trap_group": "queue1_group1",
|
||||
"always_enabled": "true"
|
||||
},
|
||||
"nat": {
|
||||
"trap_ids": "src_nat_miss,dest_nat_miss",
|
||||
|
@ -5,7 +5,7 @@
|
||||
"buffer_model": "traditional"
|
||||
}
|
||||
},
|
||||
{% set features = ["swss", "bgp", "teamd", "nat", "database"] %}
|
||||
{% set features = ["swss", "bgp", "teamd", "nat", "database", "lldp", "dhcp_relay", "macsec"] %}
|
||||
"FEATURE": {
|
||||
{% for feature in features %}
|
||||
"{{ feature }}": {
|
||||
|
@ -163,6 +163,11 @@ module sonic-copp {
|
||||
}
|
||||
description "reference to CoPP group";
|
||||
}
|
||||
|
||||
leaf always_enabled {
|
||||
type boolean;
|
||||
description "field that indicates whether the trap should be always installed";
|
||||
}
|
||||
}
|
||||
/* end of list COPP_TRAP_LIST */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user