go-vmware-nsxt icon indicating copy to clipboard operation
go-vmware-nsxt copied to clipboard

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

Open sshankar-Jamcracker opened this issue 5 years ago • 0 comments

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"

sshankar-Jamcracker avatar Aug 13 '20 13:08 sshankar-Jamcracker