ansible-for-nsxt
ansible-for-nsxt copied to clipboard
nsxt_logical_routers
The routers cannot be updated getting response Logical router with display_name router_name already exists.
ps: the message is actually
"Logical router with display_name router_name already exist."
typo
any news? error is still present NSX-T Version 3.1.2.0.0.17883596
I have made some research for you:
`
def check_for_update(module, manager_url, mgr_username, mgr_password, validate_certs, logical_router_with_ids):
...
...
if existing_logical_router.contains('edge_cluster_id') and logical_router_with_ids.contains('edge_cluster_id') and
existing_logical_router['edge_cluster_id'] != logical_router_with_ids['edge_cluster_id']:
return True`
...
...
this "check_for_update" does not take in account that it posible that no Edge_Cluster was assigned to t1 router befor ...
please add
if (not existing_logical_router.__contains__('edge_cluster_id') and logical_router_with_ids.__contains__('edge_cluster_id')): return True
....