ansible-for-nsxt icon indicating copy to clipboard operation
ansible-for-nsxt copied to clipboard

nsxt_logical_routers

Open bannov opened this issue 4 years ago • 2 comments

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

bannov avatar May 05 '20 15:05 bannov

any news? error is still present NSX-T Version 3.1.2.0.0.17883596

bannov avatar Jun 30 '21 09:06 bannov

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

....

bannov avatar Jun 30 '21 09:06 bannov