Code Monkey home page Code Monkey logo

Comments (6)

GGabriele avatar GGabriele commented on June 26, 2024

Hi @t2d ,
the code says so because replace_config is not currently supported by the IOS driver :)

from napalm.

ktbyers avatar ktbyers commented on June 26, 2024

@t2d I am working on a new IOS driver that should have this (see #119 )

from napalm.

ktbyers avatar ktbyers commented on June 26, 2024

This is a documentation error in the Ansible module (napalm_install_config).

Doc string says:

    replace_config:
        description: If set to True the entire configuration on the device will be replaced during the commit. If
                     set to False, we will merge the new config with the existing one. Default: False.
        required: False

But code says:

def main():
    module = AnsibleModule(
        argument_spec=dict(
            hostname=dict(required=True),
            username=dict(required=True),
            password=dict(required=True),
            timeout=dict(required=False, default=60, type='int'),
            config_file=dict(required=True),
            dev_os=dict(required=True),
            commit_changes=dict(required=True),
            replace_config=dict(required=True),
            diff_file=dict(required=False, default=None),
            get_diffs=dict(required=False, choices=BOOLEANS, type='bool', default=True)

from napalm.

dbarrosop avatar dbarrosop commented on June 26, 2024

Yes, this problem will be fixed in #132

            replace_config=dict(required=False, choices=BOOLEANS, type='bool', default=False),

Once it's merged it will start behaving as described in the docstring.

from napalm.

jedelman8 avatar jedelman8 commented on June 26, 2024

Hey guys on a side note, I've been using the NAPALM ios integration with Ansible (before any changes from Kirk). And you may need to use get_diffs=false in the playbook. I originally added this for an older version for Arista, but needed it here so diffs aren't calculated b/c an error was being raised.

from napalm.

dbarrosop avatar dbarrosop commented on June 26, 2024

Closing this one as it should be fixed by now. Otherwise, feel free to reopen.

Thanks!

from napalm.

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.