Coder Social home page Coder Social logo

Comments (13)

venu1428 avatar venu1428 commented on June 9, 2024

hi @su-hy is this feature got added to asa_config
I still did not see it in 2.10 version also

from cisco.asa.

justjais avatar justjais commented on June 9, 2024

@venu1428 not yet, it'll be available with cisco.asa 1.1.0 collection release which would ideally happen end of OCT.

from cisco.asa.

justjais avatar justjais commented on June 9, 2024

@su-hy @venu1428 I have raised the PR to add the asked feature from the asa_config module end, can you please verify if the PR changes work as you expect.

from cisco.asa.

su-hy avatar su-hy commented on June 9, 2024

@justjais I would test it, but I am a beginner in Ansible, I don't really know how to install that 1.1.0 version. From what I can tell I still have 1.0 on my system...

from cisco.asa.

justjais avatar justjais commented on June 9, 2024

@su-hy save_when fix PR is yet not merged, so if feasible can you check the code changes from the PR and apply them locally and run the scenario which will help to verify if the fix is working as expected for you.

from cisco.asa.

robertegithub avatar robertegithub commented on June 9, 2024

Has this been released? It's not documented with the 2.0 documentation for cisco.asa.asa_config linked from the main page (https://galaxy.ansible.com/cisco/asa) [and it fails as an unsupported parameter when added to a task]

from cisco.asa.

justjais avatar justjais commented on June 9, 2024

@robertegithub I've raised the PR to add the particular feature, so if you can test out the PR #75 changes and update if that works for you as expected, then we can merge the same and release with this months asa collection release.

from cisco.asa.

su-hy avatar su-hy commented on June 9, 2024

@justjais I would test this for you but I am new to Ansible and I don't know which file I should download / replace to test the version you submitted. If you can provide some basic instructions I can try to test.

from cisco.asa.

robertegithub avatar robertegithub commented on June 9, 2024

Thank you @justjais. Here is the test I performed:

  1. Back up/move the original asa_config.py module in ~/.ansible/collections/ansible_collections/cisco/asa/plugins/modules/
    Add the updated file from PR #75 .

  2. Run a test without changes to the Ansible playbook, still using "save: yes" and "save: no" in some locations.
    Expected output: No difference
    Result: Success

  3. Leave the ASA config as is, so that no changes are required.
    Modify the playbooks to use "save_when: changed" in places where "save: yes" is used.
    Expected output: No unnecessary saves / no gratuitous 'wr mem' actions observed in "terminal monitor"
    Result: Success

  4. Update the ASA config so some changes will be required.
    Run the playbook again with the "save_when: changed" parameter in place.
    Expected output: Changes will be implemented and saved ('wr mem' actions will take place)
    Result: Success

I did not test any of the other three arguments to save_when, but the "changed" argument is good.

from cisco.asa.

justjais avatar justjais commented on June 9, 2024

@robertegithub Thanks for testing out the scenario, much appreciated. I'll update the PR and once merged it'll be queued for March'21 release.

from cisco.asa.

robertegithub avatar robertegithub commented on June 9, 2024

Awesome. Thanks @justjais !!

from cisco.asa.

robertegithub avatar robertegithub commented on June 9, 2024

Just bumping this - looks like it hasn't been released yet. Any updates on possible release for this feature?

from cisco.asa.

justjais avatar justjais commented on June 9, 2024

FIx with the PR is merged and released with the ASA collection version 2.0.1

from cisco.asa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.