Ipv6 Dhcp Server

Test suite to check DHCPv6 service

Test DHCPv6 Server Unavailable Instance

Description

This scenario checks if the user tries to clear the leases for an unavailable instance or shared-network

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address '10::1/64'
set interfaces ethernet eth0 vif 100 address '20::1/64'
set service dhcpv6-server shared-network dhcpv6 subnet '10::/64' address-range start '10::5' stop '10::5'
set service dhcpv6-server shared-network dhcpv6-2 subnet '20::/64' address-range start '20::5' stop '20::5'
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Run command service dhcpv6-server clear INVALID_INSTANCE_NAME lease all at DUT0 and check if output contains the following tokens:

Invalid_instance_name instance of DHCPv6-server is not running
Show output
Invalid_instance_name instance of DHCPv6-server is not running

Step 3: Run command service dhcpv6-server clear dhcpv6 lease all at DUT0 and expect this output:

Show output
Dhcpv6 instance of DHCPv6-server is not running

Step 4: Run command service dhcpv6-server clear dhcpv6-2 lease all at DUT0 and expect this output:

Show output
Dhcpv6-2 instance of DHCPv6-server is not running