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"/>
api url to link interfaces between two nodes
Moderator: mike
-
- Posts: 534
- Joined: Wed Mar 15, 2017 1:54 pm
Re: api url to link interfaces between two nodes
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.
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.
-
- Posts: 4
- Joined: Thu Dec 03, 2020 4:50 pm
Re: api url to link interfaces between two nodes
I could create a link between 2 nodes (EVE Community). These are the directions:
1. Create a network:
curl -X POST -d '{"count":1,"name":"<<Network-name >>","type":"bridge","left":693,"top":274,"visibility":1,"postfix":0}' -H 'Content-type: application/json' http://127.0.0.1/api/labs/<<topology-na ... l/networks
- Response = {"id": <<network-id>>}
2. Attach your new network to 2 nodes:
curl -X PUT -d '{"<<port-id>>": <<network-id>>}' -H 'Content-type: application/json' http://127.0.0.1/api/labs/<<topology-na ... interfaces
- Response = { 201 }
curl -X PUT -d '{"<<port-id>>": <<network-id>>}' -H 'Content-type: application/json' http://127.0.0.1/api/labs/<<topology-na ... interfaces
- Response = { 201 }
3. hide network:
curl -X PUT -d '{"visibility":0}' -H 'Content-type: application/json' http://127.0.0.1/api/labs/test2.unl/net ... network-id>>
- Response = { 201 }
Best regards!!!
1. Create a network:
curl -X POST -d '{"count":1,"name":"<<Network-name >>","type":"bridge","left":693,"top":274,"visibility":1,"postfix":0}' -H 'Content-type: application/json' http://127.0.0.1/api/labs/<<topology-na ... l/networks
- Response = {"id": <<network-id>>}
2. Attach your new network to 2 nodes:
curl -X PUT -d '{"<<port-id>>": <<network-id>>}' -H 'Content-type: application/json' http://127.0.0.1/api/labs/<<topology-na ... interfaces
- Response = { 201 }
curl -X PUT -d '{"<<port-id>>": <<network-id>>}' -H 'Content-type: application/json' http://127.0.0.1/api/labs/<<topology-na ... interfaces
- Response = { 201 }
3. hide network:
curl -X PUT -d '{"visibility":0}' -H 'Content-type: application/json' http://127.0.0.1/api/labs/test2.unl/net ... network-id>>
- Response = { 201 }
Best regards!!!