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

Setting standby mode on a TunnelInterface #45

Closed
bsecurefr opened this issue Mar 30, 2023 · 5 comments
Closed

Setting standby mode on a TunnelInterface #45

bsecurefr opened this issue Mar 30, 2023 · 5 comments

Comments

@bsecurefr
Copy link

Hi,
I am trying to set the TunnelInterface in 'standy' by calling int.update( ... , balancing_mode='standby') but i get the error below.
Invalid JSON format: At line 1 and column 839, balancing_mode is not recognized as JSON attribute. <class 'smc.api.exceptions.UpdateElementFailed'>
I mentionned that enabled=True is working.
Thank you

@lilianValeroFp
Copy link
Contributor

Hi,

"balancing_mode" is not an attribute of TunnelInterface. What do you want to do?

BR

@bsecurefr
Copy link
Author

Thank you for your quick response :)
On the Engine > VPN > Endpoints we need to set one of the Internal Endpoints Connection Type to standby. In red in the screenshot below.
Screenshot 2023-03-30 at 16 54 39

@lilianValeroFp
Copy link
Contributor

For now, it is not supported by the smc-python lib. We will try to support it in next versions.

@bsecurefr
Copy link
Author

Thank you :)

@lilianValeroFp
Copy link
Contributor

Hi,

You can try this kind of code:
standby_con_type = ConnectionType("Standby")
for endpoint in engine.vpn.internal_endpoint:
endpoint.update(connection_type_ref=standby_con_type.href)
Let us know.

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

2 participants