User Tools

Site Tools


guides:user:l3vpn:l3vpndelete
LDAP: couldn't connect to LDAP server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
guides:user:l3vpn:l3vpndelete [2019/12/24 09:08] – ↷ Links adapted because of a move operation bdorlandtguides:user:l3vpn:l3vpndelete [2021/10/22 08:58] (current) – ↷ Links adapted because of a move operation pgels
Line 1: Line 1:
 +{{indexmenu_n>2}}
 +====== Delete L3 VPN ======
 +
 +So until now, we have seen How to [[guides:user:l3vpn:l3vpn|add]] a L3VPN , how to [[guides:user:l3vpn:l3vpnmodify|modify]] parameter(s) on an existing L3VPN. On this page, we demonstrate how to decommission a VPN.
 +
 +The general workflow is as below:
 +  - Template(s) to negate the CLI that was put up during the Add
 +  - Service Type to delete the information from the database
 +
 +====== Template ======
 +Here we need to alter our AddVRF template to accomodate for an extra variable 'Decommission' which when set to 'Y'
 +will initiate the negation of CLI as shown below
 +===== AddVRF =====
 +<code>
 +#reload PE_CE_nets
 +interface <Port_type><Slot_id>/<Port_id>
 +|Decommission='Y'|no ip vrf forwarding <Vrf_name> \
 +no ip address <If_ip_N> <Net_mask> \
 +no service-policy input police \
 +shut
 +
 +|Decommission!='Y'|ip vrf forwarding <Vrf_name> \
 +ip address <If_ip_N> <Net_mask> \
 +service-policy input police \
 +no shut
 +
 +</code>
 +
 +Next we need to create a new Command Job with parameter below
 +===== Command Job =====
 +==== Delete L3VPN ====
 +{{guides:howto:delete_command_job.png?400|}}
 +
 +Most of the lines in the Commands are self explanatory.
 +
 +The Scenario: section now includes a flag Decommission with value 'Y' which informs the AddVRF template to execute the decommission block 
 +
 +The output from  Evaluate button reveals following configuration will be pushed to the device
 +{{guides:howto:delete_command_job_02.png?400|}}
 +
 +Now we need to clean up the database by removing the record for the Add L3VPN entry created by the Service Type during the Add phase
 +==== Service Type ====
 +
 +
 +
  
guides/user/l3vpn/l3vpndelete.txt · Last modified: 2021/10/22 08:58 by pgels