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_server: T6852: Add op mode command "show dhcpv6 server statistics" #4184

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

natali-rs1985
Copy link
Contributor

Change Summary

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

Component(s) name

op mode

Proposed changes

added command show dhcpv6 server statistics

How to test

set interfaces ethernet eth1 address '2001:db8::1/64'

set service dhcpv6-server shared-network-name NET1 interface 'eth1'
set service dhcpv6-server shared-network-name NET1 subnet 2001:db8::/64 option name-server '2001:db8::ffff'
set service dhcpv6-server shared-network-name NET1 subnet 2001:db8::/64 range 1 start '2001:db8::100'
set service dhcpv6-server shared-network-name NET1 subnet 2001:db8::/64 range 1 stop '2001:db8::199'
set service dhcpv6-server shared-network-name NET1 subnet 2001:db8::/64 subnet-id '1'
commit

vyos@vyos:~$ show dhcpv6 server statistics
Pool    Size    Leases    Available    Usage
------  ------  --------  -----------  -------
NET1    154     1         153          1%

vyos@vyos:~$ show dhcpv6 server statistics pool
Possible completions:
  NET1                  Show DHCPv6 server statistics for a specific pool


vyos@vyos:~$ show dhcpv6 server statistics pool NET1
Pool    Size    Leases    Available    Usage
------  ------  --------  -----------  -------
NET1    154     1         153          1%

Smoketest result

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

Copy link

github-actions bot commented Nov 5, 2024

👍
No issues in PR Title / Commit Title

Copy link

github-actions bot commented Nov 5, 2024

CI integration 👍 passed!

Details

CI logs

  • CLI Smoketests (no interfaces) 👍 passed
  • CLI Smoketests (interfaces only) 👍 passed
  • Config tests 👍 passed
  • RAID1 tests 👍 passed
  • TPM tests 👍 passed

@c-po c-po merged commit c97980d into vyos:current Nov 6, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants