pyats icon indicating copy to clipboard operation
pyats copied to clipboard

Error when try to profile devices

Open yixiuGit opened this issue 4 years ago • 6 comments

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.

yixiuGit avatar Jan 11 '21 23:01 yixiuGit

Hi @badalsoyantar , Please let me know if you need more information regarding this issue.

yixiuGit avatar Jan 26 '21 22:01 yixiuGit

Hi @yixiuGit Will get back to you soon on this.

badalsoyantar avatar Feb 03 '21 15:02 badalsoyantar

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.

badalsoyantar avatar Feb 03 '21 15:02 badalsoyantar

Hi @yixiuGit Can you share error log? where it is crashing?

badalsoyantar avatar Feb 04 '21 15:02 badalsoyantar

Hi @badalsoyantar , Attached file is the error collected from the log.html when run the script. errorlog.txt

yixiuGit avatar Feb 04 '21 23:02 yixiuGit

@yixiuGit Issue is fixed. Will ping you once package is released.

badalsoyantar avatar Feb 08 '21 16:02 badalsoyantar