aruba / aoscx-ansible-collection

Ansible collections for AOS-CX switches 
47 stars 23 forks source link

not sure how to add a certificate via aoscx_config #81

Open zerowaitstate opened 1 year ago

zerowaitstate commented 1 year ago

I tried using similar multiline syntax to the banner example, but I am not able to push a certificate to the box for a ta-profile. Am I missing the right syntax, or does a different option need to be added to aoscx_config to support this?

tchiapuziowong commented 1 year ago

are you receiving an error? what happens?

zerowaitstate commented 1 year ago

Basically nothing. It adds no configuration, other than parent lines if they are specified. I tried the backquote syntax from the CLI and it doesn't work there, either, so I think the banner syntax only works for banners. Normally, when entering certificates from the CLI, you have to specify them over multiple lines and CTRL-D at the end. I don't think there's support for that using vanilla aoscx_config.

I was able to work around it by using aoscx_command and import via TFTP rather than terminal, with the auto-confirm option to disable the yes/no prompt for certificate import. I think this is probably a limitation that needs to be addressed in pyaoscx as well, but I haven't checked over there yet.

zerowaitstate commented 1 year ago

It looks like there is a REST route for ta-profiles, so that's probably the route to go in the future.

tchiapuziowong commented 1 year ago

can you provide an example of the CLI commands you're providing but omit sensitive info?