Skip to content

[dhcp6relay] Add interface-id option#10571

Closed
kellyyeh wants to merge 1 commit intosonic-net:masterfrom
kellyyeh:interface-id
Closed

[dhcp6relay] Add interface-id option#10571
kellyyeh wants to merge 1 commit intosonic-net:masterfrom
kellyyeh:interface-id

Conversation

@kellyyeh
Copy link
Copy Markdown
Contributor

Why I did it

Support interface-id option with opaque value carrying link-address which will be used in dual-tor

How I did it

Add interface-id option in DHCP_RELAY configuration table, copy link-address to interface-id value

How to verify it

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

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

@kellyyeh kellyyeh requested a review from lguohan as a code owner April 13, 2022 20:06
@kellyyeh kellyyeh requested a review from yxieca April 13, 2022 20:36
@yxieca
Copy link
Copy Markdown
Contributor

yxieca commented Apr 13, 2022

Add unit test?

}
if(f == "dhcpv6_option|interface_id" && v == "true") { // interface-id is off by default on non-Dual-ToR, unless specified in config db
intf.is_interface_id = true;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What if config_db changed from true to false? You only allow one direction change?

Same question for 136-138.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

option79 is true and interface_id is false by default(line 120-121) if not specified in config_db
changes in config_db will require dhcp6relay restart to take effect

@kellyyeh
Copy link
Copy Markdown
Contributor Author

Add unit test?

Noted

@kellyyeh kellyyeh requested a review from a team as a code owner June 10, 2022 02:01
@yxieca
Copy link
Copy Markdown
Contributor

yxieca commented Jul 17, 2022

@kellyyeh please move this PR to the submodule.

@kellyyeh
Copy link
Copy Markdown
Contributor Author

kellyyeh commented Aug 1, 2022

Cherry-pick to sonic-dhcp-relay submodule by PR sonic-net/sonic-dhcp-relay#8

@kellyyeh kellyyeh closed this Aug 1, 2022
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.

2 participants