From a9fa76e0f12e35910e8be097091f08cb6c593482 Mon Sep 17 00:00:00 2001 From: Ying Xie Date: Fri, 22 Oct 2021 22:19:51 -0700 Subject: [PATCH] [copp] add dhcpv6 copp rules (#1979) What I did Add secondary COPP config file to enable DHCP V6 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 --- debian/swss.install | 1 + swssconfig/sample/01-copp-dhcpv6.config.json | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 swssconfig/sample/01-copp-dhcpv6.config.json diff --git a/debian/swss.install b/debian/swss.install index 23f9b18b8a..e6c63ab265 100644 --- a/debian/swss.install +++ b/debian/swss.install @@ -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 diff --git a/swssconfig/sample/01-copp-dhcpv6.config.json b/swssconfig/sample/01-copp-dhcpv6.config.json new file mode 100644 index 0000000000..b2d8004874 --- /dev/null +++ b/swssconfig/sample/01-copp-dhcpv6.config.json @@ -0,0 +1,11 @@ +[ + { + "COPP_TABLE:trap.group.dhcpv6": { + "trap_ids": "dhcpv6", + "trap_action":"trap", + "trap_priority":"4", + "queue": "4" + }, + "OP": "SET" + } +]