Posted on August 13, 2015 7:26 pm
 |  Asked by Xuefeng Chen
 |  824 views
RESOLVED
0
0
Print Friendly, PDF & Email

start working on a goeapi library, any help would be appreciated

https://github.com/cxfcxf/goeapi

doesn’t really support python’s ParseConfig, so using json instead, syntax maybe different,

will completing the library, the good part is, command line tool can be compiled and run on any systems.

0
Posted by Fred
Answered on August 13, 2015 7:36 pm

I also started on a while back, but never finished if you want to borrow anything:

https://github.com/fredhsu/eapigo

Fred

0
Posted by Alexis Dacquay
Answered on August 14, 2015 9:08 pm

Hi,

 

Here is a link to an external site showing Go with the Arista EOS EAPI:

https://fredhsu.wordpress.com/2014/04/25/arista-eapi-json-rpc-over-http-in-go/

 

There are also few more articles there:

https://fredhsu.wordpress.com/tag/golang/

 

 

Regards,

Alexis

0
Posted by Xuefeng Chen
Answered on August 14, 2015 9:39 pm

thanks, the core part is finished, (core.go) when i post this.

Writing a README.md, i took pyeapi as an example porting most of functions. (may go different way for interface and routing part since i think switchport should be under interface, and bgp should be under routing)

if you guys are interested, we can work on this together since i dont know all the arista command and use cases,

current part is all i need for my company to use the api though go.

the RumCmds doesnt support sync, but for go routine to work, you can write a wrapper function.

0
Posted by Mark Berly
Answered on September 29, 2015 2:52 pm

Due to popular demand we are starting to work on goEAPI – if you are interested to collaborate check it out on GitHub at:

https://github.com/arista-eosplus/goeapi

0
Posted by John
Answered on July 27, 2016 3:54 pm

The EOS+ CS group has created a goeapi library. Support is provided as best effort through Github issues. You can find goeapi at: https://github.com/aristanetworks/goeapi

Post your Answer

You must be logged in to post an answer.