Skip to content
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

change the function cli when result is xml object #1456

Merged
merged 3 commits into from
May 27, 2021

Conversation

Laurel-rao
Copy link
Contributor

when the command is show xxx | display xml, the result shows the raw XML format.
before this change: result like below

{"command | display xml": "<Element xxx xxxx>"}

the result of this change below

{"command | display xml": "
<rpc-reply>
    <xxx>
     </xxx>
</rpc-reply>"
}

when the command is `show xxx | display xml`, the result shows the raw XML format.
before this change: result like below
```
{"command | display xml": "<Element xxx xxxx>"}
```
the result of this change below
```
{"command | display xml": "
<rpc-reply>
    <xxx>
     </xxx>
</rpc-reply>"
}
```
Copy link
Member

@mirceaulinic mirceaulinic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 👍

@mirceaulinic mirceaulinic merged commit d72e194 into napalm-automation:develop May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants