Deprecated

Removed in 2.9

i

Reason:This module does not support AOS 2.1 or later | Alternative:See new modules at U(https://www.ansible.com/ansible-apstra).

ansible.builtin._aos_blueprint_virtnet (v2.8.20) — module

Manage AOS blueprint parameter values

| "added in version" 2.3 of ansible.builtin"

Authors: Damien Garros (@dgarros)

deprecated | supported by community

Install Ansible via pip

Install with pip install ansible==2.8.20

Description

Apstra AOS Blueprint Virtual Network module let you manage your Virtual Network easily. You can create access, define and delete Virtual Network by name or by using a JSON / Yaml file. This module is idempotent and support the I(check) mode. It's using the AOS REST API.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.

- name: "Access Existing Virtual Network"
  aos_blueprint_virtnet:
    session: "{{ aos_session }}"
    blueprint: "my-blueprint-l2"
    name: "my-virtual-network"
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Delete Virtual Network with JSON File"
  aos_blueprint_virtnet:
    session: "{{ aos_session }}"
    blueprint: "my-blueprint-l2"
    content: "{{ lookup('file', 'resources/virtual-network-02.json') }}"
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Create Virtual Network"
  aos_blueprint_virtnet:
    session: "{{ aos_session }}"
    blueprint: "my-blueprint-l2"
    content: "{{ lookup('file', 'resources/virtual-network-02.json') }}"
    state: present

Inputs

    
name:
    description:
    - Name of Virtual Network as part of the Blueprint.

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Indicate what is the expected state of the Virtual Network (present or not).

content:
    description:
    - Datastructure of the Virtual Network to manage. The data can be in YAML / JSON or
      directly a variable. It's the same datastructure that is returned on success in
      I(value).

session:
    description:
    - An existing AOS session as obtained by M(aos_login) module.
    required: true

blueprint:
    description:
    - Blueprint Name or Id as defined in AOS.
    required: true