Skip to content

pyIOSXR  #40

Description

@annejg

Hi!

I'm been working on a program where I want to push configuration to Cisco IOS XR devices and I run into problems when trying to use the code below.

This is my current code snippets:

device = IOSXR(hostname=router["ip"], username=router["username"], password=["password", port=router["port"], timeout=120)

device.open()
device.load_candidate_config(filename=router["path"])`
device.compare_replace_config()
device.commit_replace_config(label='test')
device.close()

I've made sure that the device xml agent is configured with 'iteration off' and I've tried different combinations of locking and unlocking the configuration, and wrapping it in 'try' statements to figure out where the problem lies.

The device just wont accept the load_candidate, compare_replace and commit_replace command.

Have I missed something obvious with the pyIOSXR library?

Best regards,
Anne Golinski

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions