Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[201811][warmboot finalizer] load dhcpv6 copp rules when missing #9048

Merged
merged 1 commit into from
Oct 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions files/image_config/warmboot-finalizer/finalize-warmboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@ function stop_control_plane_assistant()
fi
}

function load_dhcpv6_copp_rules()
{
KEY="COPP_TABLE:trap.group.dhcpv6"
RULE=$(redis-cli -n 0 keys "${KEY}")
if [[ -n "${RULE}" ]]; then
debug "${KEY} already exist, skip reloading..."
else
debug "${KEY} not found, reloading..."
docker exec -t swss swssconfig /etc/swss/config.d/01-copp-dhcpv6.config.json
fi
}


wait_for_database_service

Expand Down Expand Up @@ -107,4 +119,5 @@ if [[ -n "${list}" ]]; then
debug "Some components didn't finish reconcile: ${list} ..."
fi

load_dhcpv6_copp_rules
finalize_warm_boot