Skip to content

we couldn’t attach the Edgecluster through ansible script for T1 Gateway in policy mode #31

@sshankar-Jamcracker

Description

@sshankar-Jamcracker

We are developing ansible script automation of NSXT 3.0 , few scripts went success without any issues… in below script which we developed for T-1 Gateway policy mode.
Issue :- we couldn’t attach the Edgecluster through ansible script as shown below

  • hosts: 127.0.0.1
    connection: local
    vars:
    nsxt_hostname: "172.16.10.20"
    nsxt_username: "admin"
    nsxt_password: "1qaNUHJxdrt"
    validate_certs: "False"
    rout_display_name: "jc-LR-Tier-POL-2"
    rout_failover_mode: "PREEMPTIVE"
    rout_disable_firewall: "True"
    rout_force_whitelisting: "True"
    rout_standby_relocation: "False"
    rout_scope: "sc"
    rout_tag: "a"
    rout_tier0_name: "T0"
    ansible_python_interpreter: /usr/bin/python3.6
    tasks:
    • name: Create logical router
      nsxt_policy_tier1:
      hostname: "{{nsxt_hostname}}"
      username: "{{nsxt_username}}"
      password: "{{nsxt_password}}"
      validate_certs: "{{ validate_certs }}"
      display_name: "{{rout_display_name}}"
      state: "present"
      failover_mode: "{{rout_failover_mode}}"
      disable_firewall: "{{rout_disable_firewall}}"
      force_whitelisting: "{{rout_force_whitelisting}}"
      enable_standby_relocation: "{{rout_standby_relocation}}"
      tags:
      - scope: "{{rout_scope}}"
      tag: "{{rout_tag}}"
      route_advertisement_types:
      - "TIER1_CONNECTED"
      tier0_display_name: "{{rout_tier0_name}}"

      locale_services:
      - state: present
      edge_cluster_info:
      preferred_edge_nodes_info:
      - edge_cluster_name: "cluster-edge"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions