ansible.builtin.pn_vrouter_bgp_network (v2.9.27) — module

CLI command to add/remove vrouter-bgp-network

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

Authors: Pluribus Networks (@rajaspachipulusu17)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

This module can be used to add Border Gateway Protocol network to a vRouter and remove Border Gateway Protocol network from a vRouter.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name:  Add network to bgp
  pn_vrouter_bgp_network:
    pn_cliswitch: "sw01"
    state: "present"
    pn_vrouter_name: "foo-vrouter"
    pn_network: '10.10.10.10'
    pn_netmask: '31'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name:  Remove network from bgp
  pn_vrouter_bgp_network:
    pn_cliswitch: "sw01"
    state: "absent"
    pn_vrouter_name: "foo-vrouter"
    pn_network: '10.10.10.10'

Inputs

    
state:
    choices:
    - present
    - absent
    description:
    - State the action to perform. Use C(present) to add bgp network and C(absent) to
      remove bgp network.
    required: true
    type: str

pn_netmask:
    description:
    - BGP network mask.
    required: false
    type: str

pn_network:
    description:
    - IP address for BGP network.
    required: false
    type: str

pn_cliswitch:
    description:
    - Target switch to run the CLI on.
    required: false
    type: str

pn_vrouter_name:
    description:
    - name of service config.
    required: false
    type: str

Outputs

changed:
  description: indicates whether the CLI caused changes on the target.
  returned: always
  type: bool
command:
  description: the CLI command run on the target node.
  returned: always
  type: str
stderr:
  description: set of error responses from the vrouter-bgp-network command.
  returned: on error
  type: list
stdout:
  description: set of responses from the vrouter-bgp-network command.
  returned: always
  type: list