nsxt_logical_router_ports_facts – List Logical Router Ports

New in version 2.7.

Synopsis

  • Returns information about all logical router ports. Information includes the resource_type (LogicalRouterUpLinkPort, LogicalRouterDownLinkPort, LogicalRouterLinkPort, LogicalRouterLoopbackPort, LogicalRouterCentralizedServicePort); logical_router_id (the router to which each logical router port is assigned); and any service_bindings (such as DHCP relay service). The GET request can include a query parameter (logical_router_id or logical_switch_id).

Parameters

Parameter Choices/Defaults Comments
hostname
string / required
Deployed NSX manager hostname.
password
string / required
The password to authenticate with the NSX manager.
username
string / required
The username to authenticate with the NSX manager.

Examples

- name: List Logical Router Ports
  nsxt_logical_router_ports_facts:
      hostname: "10.192.167.137"
      username: "admin"
      password: "Admin!23Admin"
      validate_certs: False

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