Skip to content

Commit

Permalink
[copp] add dhcpv6 copp rules (#1979)
Browse files Browse the repository at this point in the history
What I did
Add secondary COPP config file to enable DHCP V6

(1) need to create a new table,
(2) so that the warm reboot asic config checker won't flag it as a configuration change and prevent warm reboot.
(3) warm reboot finalizer can selectively just apply the second file.

Why I did it
Need to enable DHCP V6

How I verified it
Warm reboot from a version without it to a version with it.
Warm reboot from a version with it to same version.
Cold reboot.

In all 3 cases, dhcp v6 rules are correctly installed.

Signed-off-by: Ying Xie <[email protected]>
  • Loading branch information
yxieca authored and lguohan committed Oct 24, 2021
1 parent 3503705 commit 3c40ed3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/swss.install
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
swssconfig/sample/netbouncer.json etc/swss/config.d
swssconfig/sample/00-copp.config.json etc/swss/config.d
swssconfig/sample/01-copp-dhcpv6.config.json etc/swss/config.d
neighsyncd/restore_neighbors.py usr/bin
11 changes: 11 additions & 0 deletions swssconfig/sample/01-copp-dhcpv6.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"COPP_TABLE:trap.group.dhcpv6": {
"trap_ids": "dhcpv6",
"trap_action":"trap",
"trap_priority":"4",
"queue": "4"
},
"OP": "SET"
}
]

0 comments on commit 3c40ed3

Please sign in to comment.