api url to link interfaces between two nodes

Features you'd like to see in the upcoming version of EVE-NG

Moderator: mike

Post Reply
chitiz
Posts: 6
Joined: Thu Nov 08, 2018 9:09 am

api url to link interfaces between two nodes

Post by chitiz » Fri Oct 25, 2019 3:13 am

Dear Team,

I need to connect a particular port of cisco iol (e1/3) to mgmt network(cloud1) and another(e0/0) to a switch(net). I have 45 cisco iol nodes. I scanned through the API doco (https://www.eve-ng.net/documentation/ho ... eve-ng-api) but could not find the reference for a link addition.
I could update a topology xml file directly using a customized script but I am wondering if there is any standard way of doing this.


Here is a snapshot of the topology XML file

<node id="1" name="Template" type="iol" template="iol" image="i86bi-linux-l3-adventerprisek9-15.4.2T.bin" ethernet="2" nvram="1024" ram="256" serial="0" console="" delay="0" icon="Router.png" config="1" left="609" top="231">
<interface id="0" name="e0/0" type="ethernet" network_id="2"/>
<interface id="49" name="e1/3" type="ethernet" network_id="1"/>
</node>
<node id="3" name="R3" type="iol" template="iol" image="i86bi-linux-l3-adventerprisek9-15.4.2T.bin" ethernet="2" nvram="1024" ram="1024" serial="0" console="" delay="0" icon="Router.png" config="1" left="600" top="399">
<interface id="0" name="e0/0" type="ethernet" network_id="2"/>
<interface id="49" name="e1/3" type="ethernet" network_id="1"/>
</node>
<node id="4" name="R4" type="iol" template="iol" image="i86bi-linux-l3-adventerprisek9-15.4.2T.bin" ethernet="2" nvram="1024" ram="256" serial="0" console="" delay="0" icon="Router.png" config="1" left="618" top="330">
<interface id="0" name="e0/0" type="ethernet" network_id="2"/>
<interface id="49" name="e1/3" type="ethernet" network_id="1"/>
</node>
<node id="5" name="R5" type="iol" template="iol" image="i86bi-linux-l3-adventerprisek9-15.4.2T.bin" ethernet="2" nvram="1024" ram="256" serial="0" console="" delay="0" icon="Router.png" config="0" left="531" top="564">
<interface id="0" name="e0/0" type="ethernet" network_id="2"/>
<interface id="49" name="e1/3" type="ethernet" network_id="1"/>

ecze
Posts: 533
Joined: Wed Mar 15, 2017 1:54 pm

Re: api url to link interfaces between two nodes

Post by ecze » Thu Dec 05, 2019 9:14 am

Hi,

To be honest as we don't have currently to API documentation up to date, the best approach is to spy your browser using dev tool.
You will step by step what happens when connecting nodes( add network, update node1 interface , update node2 interface )

Regards,

E.

Post Reply