Local-Vrf

Test suite to check Multi instances of DHCP Server and DHCPv6 Server services on VRFs

Test DHCPv6-Server Unavailable Instance Over VRF’s

Description

This scenario checks if the user tries to clear the leases for an unavailable instance or shared-network over multiples VRF’s

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 vif 100 address '10::1/24'
set interfaces ethernet eth0 vif 100 vrf VRF0
set interfaces ethernet eth0 vif 101 address '10::1/64'
set interfaces ethernet eth0 vif 101 vrf VRF1
set service dhcpv6-server shared-network SH0 local-vrf VRF0
set service dhcpv6-server shared-network SH0 subnet '10::/64' address-range start '10::20' stop '10::20'
set service dhcpv6-server shared-network SH1 local-vrf VRF1
set service dhcpv6-server shared-network SH1 subnet '10::/64' address-range start '10::20' stop '10::20'
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf VRF0
set system vrf VRF1

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 main lease all at DUT0 and check if output contains the following tokens:

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

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

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

Step 5: Run command service dhcpv6-server clear VRF0 lease all at DUT0 and expect this output: Step 6: Run command service dhcpv6-server clear SH0 lease all at DUT0 and expect this output:

Show output
Sh0 instance of DHCPv6-server is not running