Vrf New Mark
Test suite to validate that a VRF releases its mark when it is deleted, so that creating it again assigns a new one regardless of the characters used in its name.
Test VRF Gets New Mark After Delete
Description
Deleting a VRF releases its mark, so creating it again must assign a new one while its neighbour keeps its own. Each pair is configured at the same time and chosen so that the deleted name, were it handled as a pattern instead of as a literal, would also match its neighbour.
Scenario
Example 1
Step 1: Set the following configuration in DUT0 :
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system vrf LAN.100 set system vrf LAN_100
Step 2: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN.100 2147484683 No description for this VRF LAN_100 2147484684 No description for this VRF
Step 3: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN.100 2147484683 No description for this VRF LAN_100 2147484684 No description for this VRF
Step 4: Modify the following configuration lines in DUT0 :
delete system vrf LAN_100
Step 5: Modify the following configuration lines in DUT0 :
set system vrf LAN_100
Step 6: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN.100 2147484683 No description for this VRF LAN_100 2147484685 No description for this VRF
Step 7: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN.100 2147484683 No description for this VRF LAN_100 2147484685 No description for this VRF
Example 2
Step 1: Set the following configuration in DUT0 :
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system vrf LAN.100 set system vrf LAN_100
Step 2: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN.100 2147484686 No description for this VRF LAN_100 2147484687 No description for this VRF
Step 3: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN.100 2147484686 No description for this VRF LAN_100 2147484687 No description for this VRF
Step 4: Modify the following configuration lines in DUT0 :
delete system vrf LAN.100
Step 5: Modify the following configuration lines in DUT0 :
set system vrf LAN.100
Step 6: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN.100 2147484688 No description for this VRF LAN_100 2147484687 No description for this VRF
Step 7: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN.100 2147484688 No description for this VRF LAN_100 2147484687 No description for this VRF
Example 3
Step 1: Set the following configuration in DUT0 :
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system vrf 'LAN*100' set system vrf LANN100
Step 2: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN*100 2147484689 No description for this VRF LANN100 2147484690 No description for this VRF
Step 3: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN*100 2147484689 No description for this VRF LANN100 2147484690 No description for this VRF
Step 4: Modify the following configuration lines in DUT0 :
delete system vrf 'LAN*100'
Step 5: Modify the following configuration lines in DUT0 :
set system vrf 'LAN*100'
Step 6: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN*100 2147484691 No description for this VRF LANN100 2147484690 No description for this VRF
Step 7: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN*100 2147484691 No description for this VRF LANN100 2147484690 No description for this VRF
Example 4
Step 1: Set the following configuration in DUT0 :
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system vrf LAN+100 set system vrf LANN100
Step 2: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN+100 2147484692 No description for this VRF LANN100 2147484693 No description for this VRF
Step 3: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN+100 2147484692 No description for this VRF LANN100 2147484693 No description for this VRF
Step 4: Modify the following configuration lines in DUT0 :
delete system vrf LAN+100
Step 5: Modify the following configuration lines in DUT0 :
set system vrf LAN+100
Step 6: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN+100 2147484694 No description for this VRF LANN100 2147484693 No description for this VRF
Step 7: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN+100 2147484694 No description for this VRF LANN100 2147484693 No description for this VRF
Example 5
Step 1: Set the following configuration in DUT0 :
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system vrf LA100 set system vrf 'LAN?100'
Step 2: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LA100 2147484695 No description for this VRF LAN?100 2147484696 No description for this VRF
Step 3: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LA100 2147484695 No description for this VRF LAN?100 2147484696 No description for this VRF
Step 4: Modify the following configuration lines in DUT0 :
delete system vrf 'LAN?100'
Step 5: Modify the following configuration lines in DUT0 :
set system vrf 'LAN?100'
Step 6: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LA100 2147484695 No description for this VRF LAN?100 2147484697 No description for this VRF
Step 7: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LA100 2147484695 No description for this VRF LAN?100 2147484697 No description for this VRF
Example 6
Step 1: Set the following configuration in DUT0 :
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system vrf LAN0 set system vrf 'LAN[01]'
Step 2: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN0 2147484698 No description for this VRF LAN[01] 2147484699 No description for this VRF
Step 3: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN0 2147484698 No description for this VRF LAN[01] 2147484699 No description for this VRF
Step 4: Modify the following configuration lines in DUT0 :
delete system vrf 'LAN[01]'
Step 5: Modify the following configuration lines in DUT0 :
set system vrf 'LAN[01]'
Step 6: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN0 2147484698 No description for this VRF LAN[01] 2147484700 No description for this VRF
Step 7: Run the command system vrf show on DUT0 and expect the following output:
Show output
------------------------------------------------ Name Mark Description ------------------------------------------------ LAN0 2147484698 No description for this VRF LAN[01] 2147484700 No description for this VRF