ansible.builtin.aos_blueprint_virtnet (v2.4.6.0-1) — module

Manage AOS blueprint parameter values

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

Authors: Damien Garros (@dgarros)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.4.6.0.post1

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