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

Why I did it
Need to enable DHCP V6

Create separate file because:
- The new COPP rule needs to be in a separate table so that it
  could applied individually after warm reboot.
- The warm reboot has asic config checker, keeping the config
  in a separate file could avoid the checker flag it as a config
  change therefore stop warm reboot.
- Make it convenient for warm reboot finalizer to apply this
  config individually.

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 committed Oct 24, 2021
1 parent 3503705 commit e0b115a
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 e0b115a

Please sign in to comment.