-
Notifications
You must be signed in to change notification settings - Fork 49
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
[Question] How to make DHCP lease entry as static #336
Comments
You should be able to use the api_info module (https://docs.ansible.com/ansible/devel/collections/community/routeros/api_info_module.html with |
I was able to find an entry by the host-name but only via SSH, in the current API host-name not existing.
|
Have you tried the |
Yeah, this was a reason, sorry for not responding asap but still fighting with scripting.
I found a way how to change but it is not an "idempotent" (ansible detecting change even if it wasn't) way:
|
Why don't you use the
Regarding the
|
"msg": "restrict: the field "host-name" does not exist for this path"
I missed the |
As in the thread, how make an entry as a static DHCP lease by using API calls from Anisble?
Path: /ip/dhcp-server/lease -> make-static
The text was updated successfully, but these errors were encountered: