-
Notifications
You must be signed in to change notification settings - Fork 19
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
arubaoss_interface.py - missleading example #49
Comments
Yes, there is an error on example can you try
? admin_stat is for admin port tatus |
I tried using state: delete - unfortunately it does not yield the disabled line in the resulting config on the switch for me.. |
What the result ? |
from ansible-playbook run with verbosity I can see that "state": "delete", but after that we get back: "is_port_enabled": true, (see the whole response below) am I expecting the wrong thing here? webui and CLI show that indeed the interface is enabled..
ansible result:
|
you want to disable a port ? or remove qos ? it is disable a port, you need to use ’’’ |
yes this option works, thank you @alagoutte for your help! the result of setting the example within the module code should be changed. |
Yes, good idea to have a better example (you can push fix for example!) |
please be aware, that <state: delete> did not remove the interface for me - not sure what was the reason for this (see above result of my test). |
Hi,
when configuring interfaces, we can not set state enabled - there is an option admin_stat, but I am not sure what admin_stat exactly does.
from examples section:
arubaoss_interface:
interface: 5
qos_policy: "my_qos"
enable: False
yields error message:
"msg": "Unsupported parameters for (arubaoss_interface) module: enable. Supported parameters include: interface, api_version, username, acl_type, qos_policy, host, acl_id, provider, admin_stat, qos_direction, state, use_ssl, validate_certs, ssh_keyfile, description, port, timeout, password, acl_direction."
in switch config we can put keyword disable (enable most likely is default)
please advice how can we set an interface to disabled state within playbook using this collection and interface module?
maybe you can give me a hint where to find some documentation about the option admin_stat as well, so we can make sure there is no overlap / confusion from this.
I guess it is state - we can set to delete or create while create is default. is delete the same as disable?
many thanks in advance!
The text was updated successfully, but these errors were encountered: