autonet_cumulus.tasks.vrf
¶
Module Contents¶
Functions¶
|
Get a list of |
|
Generates the commands required to create a VRF. |
|
Generate a list of commands to delete a vrf. |
- autonet_cumulus.tasks.vrf.get_vrfs(ip_vrf_data: str, vrf_name: str = None) [autonet.core.objects.vrf.VRF] ¶
Get a list of
VRF
objects.- Parameters:
ip_vrf_data – The output of the
ip -o link show type vrf
command.vrf_name – Filter for a particular VRF by name.
- Returns:
- autonet_cumulus.tasks.vrf.generate_create_vrf_commands(vrf: autonet.core.objects.vrf.VRF) [str] ¶
Generates the commands required to create a VRF.
- Parameters:
vrf – A :py:class`VRF` object.
- Returns:
- autonet_cumulus.tasks.vrf.generate_delete_vrf_commands(vrf_name: str) [str] ¶
Generate a list of commands to delete a vrf.
- Parameters:
vrf_name – The name of the VRF to be removed.
- Returns: