pyats
pyats copied to clipboard
Error when try to profile devices
I try to profile devices under robot framework using below command Profile the system for "config;interface;platform;ospf;arp;routing;vrf;vlan" on devices "${alldevices}" as "${CURDIR}/${site}/good/${folder}" and get error message "ValueError:invalid liternal for int() with base 10: '65003.28'". If I remove osfp,routing, vrf from the profile command, the job can be done successfully. I check the device configuration. we have configuration like "router bgp 65003.28" and "set as-path prepend 65003.28". I think it is due to pyats only deal with process id as integer.
Is it possible to fix it.
Hi @badalsoyantar , Please let me know if you need more information regarding this issue.
Hi @yixiuGit Will get back to you soon on this.
There are 2 formats to represent BGP ASN 4260036636(AS-PLAIN) or 65003.28(AS-COLON). To be agnostic in Genie model uses AS-PLAIN. I will add conversion and let you know once it is merged and released.
Hi @yixiuGit Can you share error log? where it is crashing?
Hi @badalsoyantar , Attached file is the error collected from the log.html when run the script. errorlog.txt
@yixiuGit Issue is fixed. Will ping you once package is released.