piolink_yhoh.pask_test.pask_vlan (1.0.5) — module

Configuring vlan setting

| "added in version" 2.10 of piolink_yhoh.pask_test"

Authors: Yohan Oh (@piolink-yhoh)

Install collection

Install with ansible-galaxy collection install piolink_yhoh.pask_test:==1.0.5


Add to requirements.yml

  collections:
    - name: piolink_yhoh.pask_test
      version: 1.0.5

Description

You can configure vlan setting of the PAS-K.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---
- name: Interface Test
  hosts: all
  connection: local
  collections:
  - piolink_yhoh.pask_test

  tasks:
  - name: create vlan
    pask_vlan:
      prest_ip: "{{ansible_host}}"
      prest_port: "{{ansible_port}}"
      user_id: "{{user_id}}"
      user_pw: "{{user_pw}}"
      name: "test_vlan"
      vid: "2917"
      port:
        - name: "ge7"
          type: "untagged"

  - name: delete vlan
    pask_vlan:
      prest_ip: "{{ansible_host}}"
      prest_port: "{{ansible_port}}"
      user_id: "{{user_id}}"
      user_pw: "{{user_pw}}"
      name: "test_vlan"
      vid: "2917"
      state: "absent"

Inputs

    
vid:
    description:
    - Enter the vlan ID.
    required: true
    type: str

name:
    description:
    - Enter the vlan name.
    required: true
    type: str

port:
    description:
    - Enter the port info to be include in the vlan.
    elements: dict
    suboptions:
      name:
        description:
        - Enter the port name.
        required: true
        type: str
      type:
        description:
        - Enter the port type.
        - The value should be 'tagged' or 'untagged'.
        required: true
        type: str
    type: list

state:
    description:
    - Enter the status of this configuration.
    - If you want to delete this PAS-K configuration, enter 'absent',
    - otherwise, you can enter 'present' or you don't have to do enter anything.
    type: str

user_id:
    description:
    - Enter the PAS-K user id.
    required: true
    type: str

user_pw:
    description:
    - Enter the PAS-K user password.
    required: true
    type: str

prest_ip:
    description:
    - Enter the PAS-K IP address.
    required: true
    type: str

prest_port:
    description:
    - Enter the port number of PAS-K used for PREST-API.
    required: true
    type: str