nsxt_logical_router_static_routes – Add Static Routes on a Logical Router

New in version 2.7.

Synopsis

  • Add Static Routes on a Logical Router

Parameters

Parameter Choices/Defaults Comments
description
string
Description of the resource
display_name
string / required
Display name of the resource
hostname
string / required
Deployed NSX manager hostname.
id
string
unique id
logical_router_name
string
Name of the logical router
network
string / required
destination in cidr
next_hops
array of StaticRouteNextHop / required
Next Hops
password
string / required
The password to authenticate with the NSX manager.
state
- / required
    Choices:
  • present
  • absent
State can be either 'present' or 'absent'. 'present' is used to create or update resource. 'absent' is used to delete resource.
tags
Array of Tag
Opaque identifier meaningful to API user
username
string / required
The username to authenticate with the NSX manager.

Examples

- name: Add Static Routes on a Logical Router
  nsxt_logical_router_static_routes:
    hostname: "{{hostname}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: False
    display_name: "static_route"
    logical_router_name: "tier-0"
    next_hops:
    - administrative_distance: '2'
      ip_address: 192.168.200.253
    network: 192.168.200.0/24
    state: "present"

Status

  • This module is not guaranteed to have a backwards compatible interface. [preview]

  • This module is maintained by the Ansible Community. [community]

Authors

  • Rahul Raghuvanshi