Skip to content

[dhcp_relay] Update DHCPv6 counter on relayed messages#9283

Merged
kellyyeh merged 4 commits intosonic-net:masterfrom
kellyyeh:kellyyeh-dhcp6-counter-master
Dec 1, 2021
Merged

[dhcp_relay] Update DHCPv6 counter on relayed messages#9283
kellyyeh merged 4 commits intosonic-net:masterfrom
kellyyeh:kellyyeh-dhcp6-counter-master

Conversation

@kellyyeh
Copy link
Contributor

Why I did it

DHCPv6 Counter updates counter only on received messages, not relayed messages

How I did it

Update counter on messages relayed by DHCPv6 Relay

How to verify it

Update counter on messages relayed by DHCPv6 Relay

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

Signed off by Kelly Yeh: kellyyeh@microsoft.com

@kellyyeh kellyyeh force-pushed the kellyyeh-dhcp6-counter-master branch from 3fff918 to 09c59f0 Compare November 17, 2021 06:56
@kellyyeh kellyyeh changed the title [dhcp_relay] Update DHCPv6 counter on relay messages [dhcp_relay] Update DHCPv6 counter on relayed messages Nov 17, 2021
@kellyyeh kellyyeh requested a review from yxieca November 17, 2021 20:32
@kellyyeh kellyyeh marked this pull request as ready for review November 17, 2021 20:32
@kellyyeh kellyyeh requested a review from lguohan as a code owner November 17, 2021 20:32
yxieca
yxieca previously approved these changes Nov 19, 2021
/* DHCPv6 Counter */
uint64_t counters[DHCPv6_MESSAGE_TYPE_COUNT];
std::map<int, std::string> counterMap = {{1, "Solicit"},
std::map<int, std::string> counterMap = {{0, "Unknown"},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to add initialization code for 'Unknown' in initialize_counter()?

@kellyyeh kellyyeh force-pushed the kellyyeh-dhcp6-counter-master branch from 6f0865e to 63d6905 Compare November 19, 2021 07:26
@kellyyeh
Copy link
Contributor Author

/Azp run

@azure-pipelines
Copy link

You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list.

@kellyyeh
Copy link
Contributor Author

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kellyyeh kellyyeh merged commit f2ee94d into sonic-net:master Dec 1, 2021
@kellyyeh kellyyeh deleted the kellyyeh-dhcp6-counter-master branch December 1, 2021 04:15
@qiluo-msft
Copy link
Collaborator

This commit could not be cleanly cherry-picked to 202012. Please submit another PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants