Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sshankar-Jamcracker opened this issue Aug 13, 2020 · 0 comments

Comments

@sshankar-Jamcracker
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant