Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

jayaprakash's profile - activity

2016-03-31 03:07:14 -0700 received badge  Supporter (source)
2016-02-26 01:49:35 -0700 received badge  Teacher (source)
2016-02-26 01:49:35 -0700 received badge  Necromancer (source)
2016-02-02 23:48:26 -0700 answered a question i need to get all the paths between source and destination?

This post might help you to get all the shortest paths between two hosts in ODL whereas it's a kind of thirdparty application.

2016-02-02 23:41:55 -0700 answered a question what is Rest API to find shortest path between two switches?

Hi,

Please refer the post to get the shortest path between two hosts in ODL. It's kind of independent application in python where you can even provide source & destination nodes as switches instead of hosts so that to identify the shortest path between switches using Dijkstra's algorithm.

2016-02-02 23:32:57 -0700 answered a question How to get shortest path between two hosts?

I could get the shortest path between two hosts with ODL topology REST API & Python Networkx module. I used mininet simulator and created a custom network topology with multipath.

  1. From ODL network topology REST api response, extracted hosts, switch & links details. You can even use ODL python client SDK python-odl to get the topology information

      GET http://192.168.1.124:8181/restconf/operational/network-topology:network-topology
    
  2. With the links details, i generated a Graph using python networkx module.

      import networkx as nx
      graph = nx.Graph()
      graph.add_edges_from(graph_links)
    
  3. Then by using Dijkstra's Algorithm, can find the shortest path between any two hosts in the topology

     path = nx.dijkstra_path(graph, source_node, dest_node)
    

Even we can find the list of shortest paths available for a set of hosts

     nx.all_shortest_paths(graph, source=source, target=dest)

Please share your comments on this approach.

Thanks.

2016-01-22 00:49:32 -0700 received badge  Enthusiast
2016-01-21 23:42:43 -0700 answered a question XML script to modify src/dest mac

Shuaib,

Refer this document where you can find the sample XML data to create/update a flow with source/destination MAC address.

2016-01-18 05:50:17 -0700 answered a question add flows by postman,Is there a format spec of json or xml

Hi Henaumars,

Please refer this exisitng Q&A on how to define a flow via curl.

Incase by postman, include request header as "Content-Type application/xml"

2016-01-11 23:15:44 -0700 received badge  Editor (source)
2016-01-11 23:13:45 -0700 answered a question How to get flow statistics and how to add new flows ?

Hi vinayaktj,

New flows can be created by REST API and please find the below example.

curl --noproxy 192.168.1.196 -u admin:admin -H 'Content-Type: application/yang.data+xml' -X PUT -d @flow_data.xml http://192.168.1.196:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/10

flow_data.xml

<flow xmlns="urn:opendaylight:flow:inventory"> <priority>500</priority> <flow-name>sampleFlow</flow-name> <idle-timeout>12000</idle-timeout> <match> <ethernet-match> <ethernet-type> <type>2048</type> </ethernet-type> </ethernet-match> <ip-match><ip-dscp>28</ip-dscp> </ip-match></match> <id>10</id> <table_id>0</table_id> <instructions> <instruction> <order>6555</order> </instruction> <instruction> <order>0</order> <apply-actions> <action> <order>0</order> <output-action> <output-node-connector>1</output-node-connector> </output-action> </action> </apply-actions> </instruction> </instructions> </flow>

To retrieve the created flow:

GET http://192.168.1.196:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/10

Reference URL: https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin:End_to_End_Flows