- Interface_name: [str] Variable to set the name of the Interface that will be configured. [Mandatory parameter in all cases].
- DEL: [bool] Variable that determines if the template will be for creating (DEL = False) or for deleting (DEL = True) a configuration [Mandatory parameter in all cases].
- Interface_type: [str] Variable that specifies the type of interface, can take the value "l2vlan" or "l3ipvlan" [Only mandatory if DEL = False].
- SubInterface_Index: [int] Variable to set the index of the subinterface.[Only mandatory if DEL = False].
- Description: [str] Variable for adding a description to the Interface [Only mandatory if DEL = False].
# Functionality:
This method generates the template of an Interface with subinterface, used both for L2 and L3 VPNs.
This template will be generated for configuring a device, making use of pyangbind.
To generate the template the following steps are performed:
1) Checks if the DEL variable is true (Template for deleting a existent Interface or) or false (Template for creating a new Interface with Subinterface).
2) Create the template correspondent in each case, assigning the correspondent parameters with their value.
3) Make the correspondent replaces for the unssuported configurations by pyangbind.
# Return:
[str] The newly generated template according to the specified parameters.