ansible / ansible.builtin / v2.6.2 / module / ce_vrf Manages VPN instance on HUAWEI CloudEngine switches. | "added in version" 2.4 of ansible.builtin" Authors: Yang yang (@CloudEngine-Ansible) preview | supported by communityansible.builtin.ce_vrf (v2.6.2) — module
pip
Install with pip install ansible==2.6.2
Manages VPN instance of HUAWEI CloudEngine switches.
- name: vrf module test hosts: cloudengine connection: local gather_facts: no vars: cli: host: "{{ inventory_hostname }}" port: "{{ ansible_ssh_port }}" username: "{{ username }}" password: "{{ password }}" transport: cli tasks: - name: Config a vpn install named vpna, description is test ce_vrf: vrf: vpna description: test state: present provider: "{{ cli }}" - name: Delete a vpn install named vpna ce_vrf: vrf: vpna state: absent provider: "{{ cli }}"
vrf: description: - VPN instance, the length of vrf name is 1 - 31, i.e. "test", but can not be C(_public_). required: true state: choices: - present - absent default: present description: - Manage the state of the resource. description: description: - Description of the vrf, the string length is 1 - 242 .
changed: description: check to see if a change was made on the device returned: always sample: true type: boolean end_state: description: k/v pairs of switchport after module execution returned: always sample: description: test present: present vrf: vpna type: dict existing: description: k/v pairs of existing switchport returned: always sample: {} type: dict proposed: description: k/v pairs of parameters passed into module returned: always sample: description: test state: present vrf: vpna type: dict updates: description: command list sent to the device returned: always sample: - ip vpn-instance vpna - description test type: list