# AWX and Juniper

**URL:** <https://forum.ansible.com/t/awx-and-juniper/33644>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [August 19, 2020, 9:21pm UTC](https://forum.ansible.com/t/awx-and-juniper/33644 "2020-08-19T21:21:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill\_Biker](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bill_biker/32/8087_2.png) [@Bill\_Biker](https://forum.ansible.com/u/Bill_Biker)\
**Post date:** [August 19, 2020, 9:21pm UTC](https://forum.ansible.com/t/awx-and-juniper/33644/1 "2020-08-19T21:21:00Z")

</div>

Hello All,

I have a question regarding a Juniper router but this may also apply to a  
Cisco router or switch.  
I am trying to do a config/restore config on this device.

I am using AWX 13. I can copy the configuration of the device to a file, no problem.  
I can use the “lines:” command (under junos\_config) to change or modify a single interface.

I can run ansible from the command line in a special container (ansible/pyez) and perform a copy and a restore no problem.

But if I try to restore the config using junos\_config - and perform an “update: replace”, reading from the backup file - it fails with a python error - expecting “integers” not an “str”

Any Ideas on why it will not read and load the new config file?

ewholz
