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

Seeing !!python/object/apply:ipaddress.IPv4Interface in yaml output #119

Open
bassman-junk opened this issue Feb 8, 2024 · 0 comments
Open

Comments

@bassman-junk
Copy link

Converting Cisco to JUNOS IPv4 address, example, I see the python object come through to yaml file:
convert from:
interface Loopback0
ip address 10.1.1.1 255.255.255.255

To yaml output, I see this using functions="to_ip('ip', 'mask'):

interface {{ intf }} ip address {{ ip }} {{ mask }}

output:
interfaces:
intf: Loopback0
ip: !!python/object/apply:ipaddress.IPv4Interface. <<<<<-----Why is this happening???
- 10.1.1.1/32. <<<<<<--- This looks good.
is_loop: true
mask: 255.255.255.255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant