You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I dont know if i missed something or if it's a library limitation or a SMC API limitation.
But, i don't find a way to change tunnel mode on PolicyVPN from standby to active or reverse...
policy_vpn = get_policy_vpn(policy_vpn_name)
policy_vpn.open()
policy_vpn_tunnels = list(policy_vpn.tunnels)
for t in policy_vpn_tunnels:
l_endpoint_tunnels = t.endpoint_tunnels.get_all_contains(primary_pop,case_sensitive=False)
for endpoint_tunnel in l_endpoint_tunnels:
pprint(endpoint_tunnel.data.data)
policy_vpn = PolicyVPN("Corporate VPN")
policy_vpn.open()
policy_vpn_tunnels = list(policy_vpn.tunnels)
for t in policy_vpn_tunnels:
l_endpoint_tunnels = t.endpoint_tunnels.get_all_contains("gateway",case_sensitive=False)
for endpoint_tunnel in l_endpoint_tunnels:
endpoint_tunnel.update(balancing_mode="standby")
policy_vpn.save()
policy_vpn.close()
Hello,
I dont know if i missed something or if it's a library limitation or a SMC API limitation.
But, i don't find a way to change tunnel mode on PolicyVPN from standby to active or reverse...
Return exemple :
We can't see any key "mode" for this tunnels or make a change on this option.
Information of my environement :
Thank you in advance for your help.
Kind regards,
Fgazelot
The text was updated successfully, but these errors were encountered: