Skip to content

[copp] add dhcpv6 copp rules#1979

Merged
yxieca merged 1 commit intosonic-net:201811from
yxieca:copp
Oct 23, 2021
Merged

[copp] add dhcpv6 copp rules#1979
yxieca merged 1 commit intosonic-net:201811from
yxieca:copp

Conversation

@yxieca
Copy link
Contributor

@yxieca yxieca commented Oct 23, 2021

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 ying.xie@microsoft.com

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
@yxieca yxieca merged commit a9fa76e into sonic-net:201811 Oct 23, 2021
@yxieca yxieca deleted the copp branch October 23, 2021 05:19
lguohan pushed a commit that referenced this pull request Oct 24, 2021
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 <ying.xie@microsoft.com>
yxieca added a commit that referenced this pull request Oct 25, 2021
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 <ying.xie@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants