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

[dhcp_relay] Update CLI reference document and add a new API for ip address type #1717

Merged
merged 1 commit into from
Aug 23, 2021
Merged

[dhcp_relay] Update CLI reference document and add a new API for ip address type #1717

merged 1 commit into from
Aug 23, 2021

Conversation

shlomibitton
Copy link
Contributor

@shlomibitton shlomibitton commented Jul 18, 2021

Signed-off-by: Shlomi Bitton shlomibi@nvidia.com

What I did

Update CLI reference document following PR : sonic-net/sonic-buildimage#8211
Add a new API on utilities_common to get IP type.

How I did it

  • Update doc/Command-Reference.md with new DHCP CLI.
  • Add ipaddress_type API to utilities_common/cli.py

How to verify it

Add a new API on utilities_common to get IP type

Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>
@shlomibitton
Copy link
Contributor Author

@tahmed-dev can you please review this PR?
Thanks

@anshuv-mfst
Copy link

Hi @tahmed-dev - could you please review and approve asap, this is needed in 202106 release

@@ -200,6 +201,17 @@ def is_ipaddress(val):
return False
return True

def ipaddress_type(val):
Copy link
Contributor

Choose a reason for hiding this comment

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

is ipaddress_type used anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, on the other PR for the CLI:
sonic-net/sonic-buildimage#8211
This is why this PR is a dependency for the other.

@liat-grozovik
Copy link
Collaborator

@tahmed-dev kindly reminder to review following the above reply

@liat-grozovik
Copy link
Collaborator

@tahmed-dev kindly remider

@qiluo-msft qiluo-msft merged commit 27502f0 into sonic-net:master Aug 23, 2021
qiluo-msft pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Aug 25, 2021
…8211)

#### Why I did it
- Adapt config/show CLI commands to support DHCPv6 relay
- Support multiple dhcp servers assignment in one command
- Fix IP validation
- Adapt UT and add new UT cases

#### How I did it
- Modify config/show dhcp relay files
- Modify config/show UT files

#### How to verify it
This PR has a dependency on PR sonic-net/sonic-utilities#1717
Build an image with the dependent PR and this PR
Use config/show DHCPv6 relay commands.
judyjoseph pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Aug 25, 2021
…8211)

#### Why I did it
- Adapt config/show CLI commands to support DHCPv6 relay
- Support multiple dhcp servers assignment in one command
- Fix IP validation
- Adapt UT and add new UT cases

#### How I did it
- Modify config/show dhcp relay files
- Modify config/show UT files

#### How to verify it
This PR has a dependency on PR sonic-net/sonic-utilities#1717
Build an image with the dependent PR and this PR
Use config/show DHCPv6 relay commands.
judyjoseph pushed a commit that referenced this pull request Aug 26, 2021
…ddress type (#1717)

#### What I did
Update CLI reference document following PR : sonic-net/sonic-buildimage#8211
Add a new API on utilities_common to get IP type.

#### How I did it
- Update doc/Command-Reference.md with new DHCP CLI.
- Add ipaddress_type API to utilities_common/cli.py

#### How to verify it
- Build an image with PR sonic-net/sonic-buildimage#8211 and this PR.
- Run DHCP CLI commands
@shlomibitton shlomibitton deleted the shlomi_dhcpv6_relay_update_cli_ref_and_ip_type_api branch September 5, 2021 08:38
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.

6 participants