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

Cannot deploy a VRF using vmware.ansible_for_nsxt.nsxt_policy_tier0 #476

Open
fguezo opened this issue Aug 22, 2023 · 1 comment
Open

Cannot deploy a VRF using vmware.ansible_for_nsxt.nsxt_policy_tier0 #476

fguezo opened this issue Aug 22, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@fguezo
Copy link

fguezo commented Aug 22, 2023

Describe the bug

I'm trying to deploy a VRF with the sample provided " https://github.com/vmware/ansible-for-nsxt/blob/master/tests/playbooks/policy/test_nsxt_policy_tier0.yml " but I receive the following error message:

failed: [localhost] (item={'display_name': 'vrf-management-client2', 'ha_mode': 'ACTIVE_ACTIVE', 'state': 'present', 'vrf_config': {'tier0_path': '/infra/tier-0s/Tier0'}, 'tags': [{'tag': 'ansible', 'scope': 'demo'}], 'locale_services': [{'state': 'present', 'id': 'vrf-management-client2', 'route_redistribution_config': {'redistribution_rules': [{'route_redistribution_types': ['TIER1_CONNECTED']}]}, 'edge_cluster_info': {'edge_cluster_display_name': 'edge-cluster'}, 'preferred_edge_nodes_info': [{'edge_cluster_display_name': 'edge-cluster', 'edge_node_display_name': 'edge01.siteb.local'}], 'BGP': {'state': 'present', 'local_as_num': '1211'}}]}) => {"ansible_loop_var": "item", "changed": false, "item": {"display_name": "vrf-management-client2", "ha_mode": "ACTIVE_ACTIVE", "locale_services": [{"BGP": {"local_as_num": "1211", "state": "present"}, "edge_cluster_info": {"edge_cluster_display_name": "edge-cluster"}, "id": "vrf-management-client2", "preferred_edge_nodes_info": [{"edge_cluster_display_name": "edge-cluster", "edge_node_display_name": "edge01.siteb.local"}], "route_redistribution_config": {"redistribution_rules": [{"route_redistribution_types": ["TIER1_CONNECTED"]}]}, "state": "present"}], "state": "present", "tags": [{"scope": "demo", "tag": "ansible"}], "vrf_config": {"tier0_path": "/infra/tier-0s/Tier0"}}, "msg": "Received 400 from NSX Manager. Please try again. Json de-serialization error: property display_name is unrecognized."}

Reproduction steps

  1. try to deploy VRF using vmware.ansible_for_nsxt.nsxt_policy_tier0

Expected behavior

A new VRF must be created in NSX-T

Additional context

Same issue with NSX-T version 3.2.2 and 4.0.1

@fguezo fguezo added the bug Something isn't working label Aug 22, 2023
@godfreyatlast
Copy link

I'm receiving the same error as well, in addition "id" is in the same state as "display_name". Tested on nsxt 4.0 & 3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants