[dhcpv6_relay] Fix DHCPv6 Relay config CLI to update DHCP_RELAY table #13039
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why I did it
Recently, DHCPv6 Relay DB table is changed from VLAN to DHCP_RELAY. The dhcp6relay process is spawned with the data fetched from this new table . The show CLIs were updated , but config CLIs were not updated to write to new table and still updated old VLAN table. Hence the DHCPv6 Relay was not working with CLI configurations.
How I did it
The config CLI script is modified to update new table DHCP_RELAY. The UT scripts are modified to test new table.
How to verify it
Configure DHCPv6 Relay address for vlan using CLI and check if the config is updated in DHCP_RELAY table and verify if DHCPv6 Relay process is started for that vlan.
Which release branch to backport (provide reason below if selected)
Description for the changelog
Fixed configuration CLI for DHCPv6 Relay to update data in DHCP_RELAY table.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)