<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how can I make more than two flows using rest api? in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/how-can-i-make-more-than-two-flows-using-rest-api/m-p/6692072#M633</link>
    <description>&lt;P&gt;Hello &lt;SPAN&gt;sylee,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I just received a confirmation that unfortunately adding more than one flow via the Rest API is not supported.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SDN Team&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jan 2015 16:06:56 GMT</pubDate>
    <dc:creator>piricchio72</dc:creator>
    <dc:date>2015-01-08T16:06:56Z</dc:date>
    <item>
      <title>how can I make more than two flows using rest api?</title>
      <link>https://community.hpe.com/t5/software-defined-networking/how-can-i-make-more-than-two-flows-using-rest-api/m-p/6676706#M594</link>
      <description>&lt;P&gt;I can make one flow as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"flow": {&lt;BR /&gt;"priority": 30000,&lt;BR /&gt;"table_id": 200,&lt;BR /&gt;"idle_timeout": 60,&lt;BR /&gt;"match": [&lt;BR /&gt;{ "ipv4_src": "10.0.0.1"},&lt;BR /&gt;{"ipv4_dst": "10.0.0.22"},&lt;BR /&gt;{"ip_proto": "tcp"},&lt;BR /&gt;{"eth_type": "ipv4"},&lt;BR /&gt;{"tcp_dst": "80"}],&lt;BR /&gt;"instructions": [{"apply_actions": [{"output": 1}]}]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made two flows as below but..&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"flow": [&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"priority": 30000,&lt;BR /&gt;"table_id": 200,&lt;BR /&gt;"idle_timeout": 60,&lt;BR /&gt;"match": [&lt;BR /&gt;{ "ipv4_src": "10.0.0.1"},&lt;BR /&gt;{"ipv4_dst": "10.0.0.22"},&lt;BR /&gt;{"ip_proto": "tcp"},&lt;BR /&gt;{"eth_type": "ipv4"},&lt;BR /&gt;{"tcp_dst": "80"}],&lt;BR /&gt;"instructions": [{"apply_actions": [{"output": 1}]}]&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"priority": 30000,&lt;BR /&gt;"table_id": 200,&lt;BR /&gt;"idle_timeout": 60,&lt;BR /&gt;"match": [&lt;BR /&gt;{ "ipv4_src": "10.0.0.5"},&lt;BR /&gt;{"ipv4_dst": "10.0.0.3"},&lt;BR /&gt;{"ip_proto": "tcp"},&lt;BR /&gt;{"eth_type": "ipv4"},&lt;BR /&gt;{"tcp_dst": "80"}],&lt;BR /&gt;"instructions": [{"apply_actions": [{"output": 5}]}]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't make&amp;nbsp;it.&amp;nbsp; it's failed&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to make more than two flows?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Nov 2014 06:18:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/how-can-i-make-more-than-two-flows-using-rest-api/m-p/6676706#M594</guid>
      <dc:creator>sylee</dc:creator>
      <dc:date>2014-11-23T06:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: how can I make more than two flows using rest api?</title>
      <link>https://community.hpe.com/t5/software-defined-networking/how-can-i-make-more-than-two-flows-using-rest-api/m-p/6677229#M595</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How are you trying to add these flows?&lt;/P&gt;&lt;P&gt;Do you get an error message?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SDN CoE Team&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 14:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/how-can-i-make-more-than-two-flows-using-rest-api/m-p/6677229#M595</guid>
      <dc:creator>piricchio72</dc:creator>
      <dc:date>2014-11-24T14:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: how can I make more than two flows using rest api?</title>
      <link>https://community.hpe.com/t5/software-defined-networking/how-can-i-make-more-than-two-flows-using-rest-api/m-p/6677381#M597</link>
      <description>&lt;P&gt;I made&amp;nbsp;two examples('flow' or 'flows').&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;First,&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"flow": [&lt;BR /&gt;{&lt;BR /&gt;"priority": 30000,&lt;BR /&gt;"table_id": 200,&lt;BR /&gt;"idle_timeout": 60,&lt;BR /&gt;"match": [&lt;BR /&gt;{ "ipv4_src": "10.0.0.1"},&lt;BR /&gt;{"ipv4_dst": "10.0.0.22"},&lt;BR /&gt;{"ip_proto": "tcp"},&lt;BR /&gt;{"eth_type": "ipv4"},&lt;BR /&gt;{"tcp_dst": "80"}],&lt;BR /&gt;"instructions": [{"apply_actions": [{"output": 1}]}]&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"priority": 30000,&lt;BR /&gt;"table_id": 200,&lt;BR /&gt;"idle_timeout": 60,&lt;BR /&gt;"match": [&lt;BR /&gt;{ "ipv4_src": "10.0.0.5"},&lt;BR /&gt;{"ipv4_dst": "10.0.0.3"},&lt;BR /&gt;{"ip_proto": "tcp"},&lt;BR /&gt;{"eth_type": "ipv4"},&lt;BR /&gt;{"tcp_dst": "80"}],&lt;BR /&gt;"instructions": [{"apply_actions": [{"output": 5}]}]&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Response Body&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[unable to parse as json; raw response below]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;HTTP Status 500 - com.fasterxml.jackson.databind.node.ArrayNode cannot be cast to com.fasterxml.jackson.databind.node.ObjectNode&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;type&lt;/STRONG&gt; Exception report&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;message&lt;/STRONG&gt; &lt;SPAN&gt;com.fasterxml.jackson.databind.node.ArrayNode cannot be cast to com.fasterxml.jackson.databind.node.ObjectNode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;description&lt;/STRONG&gt; &lt;SPAN&gt;The server encountered an internal error that prevented it from fulfilling this request.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;exception&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;java.lang.ClassCastException: com.fasterxml.jackson.databind.node.ArrayNode cannot be cast to com.fasterxml.jackson.databind.node.ObjectNode
	com.hp.of.json.OfJsonCodec.decode(OfJsonCodec.java:55)
	com.hp.of.json.OfJsonCodec.decode(OfJsonCodec.java:42)
	com.hp.util.json.JSON.fromJson(JSON.java:68)
	com.hp.sdn.rs.FlowProvider.update(FlowProvider.java:87)
	com.hp.sdn.rs.DatapathsResource.updateFlow(DatapathsResource.java:395)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:606)
	com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
	com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
	com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
	com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
	com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
	com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
	com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
	com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
	com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
	com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
	com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
	com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
	com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
	com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
	com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
	com.hp.util.rs.SecurityFilter.doFilter(SecurityFilter.java:94)
	com.hp.util.rs.auth.AbstractTokenAuthFilter.doFilter(AbstractTokenAuthFilter.java:106)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;note&lt;/STRONG&gt; &lt;SPAN&gt;The full stack trace of the root cause is available in the Apache Tomcat/7.0.35 logs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Response Code&lt;/P&gt;&lt;P&gt;500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*************************************************************************************************&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Second,&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"flows": [&lt;BR /&gt;{&lt;BR /&gt;"priority": 30000,&lt;BR /&gt;"table_id": 200,&lt;BR /&gt;"idle_timeout": 60,&lt;BR /&gt;"match": [&lt;BR /&gt;{ "ipv4_src": "10.0.0.1"},&lt;BR /&gt;{"ipv4_dst": "10.0.0.22"},&lt;BR /&gt;{"ip_proto": "tcp"},&lt;BR /&gt;{"eth_type": "ipv4"},&lt;BR /&gt;{"tcp_dst": "80"}],&lt;BR /&gt;"instructions": [{"apply_actions": [{"output": 1}]}]&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"priority": 30000,&lt;BR /&gt;"table_id": 200,&lt;BR /&gt;"idle_timeout": 60,&lt;BR /&gt;"match": [&lt;BR /&gt;{ "ipv4_src": "10.0.0.5"},&lt;BR /&gt;{"ipv4_dst": "10.0.0.3"},&lt;BR /&gt;{"ip_proto": "tcp"},&lt;BR /&gt;{"eth_type": "ipv4"},&lt;BR /&gt;{"tcp_dst": "80"}],&lt;BR /&gt;"instructions": [{"apply_actions": [{"output": 5}]}]&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Respose Body&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;  "message": "Invalid JSON format: Invalid JSON format: {\"version\":\"1.3.0\",\r\n\"flows\": [\r\n{\r\n\"priority\": 30000,\r\n\"table_id\": 200,\r\n\"idle_timeout\": 60,\r\n\"match\": [\r\n{ \"ipv4_src\": \"10.0.0.1\"},\r\n{\"ipv4_dst\": \"10.0.0.22\"},\r\n{\"ip_proto\": \"tcp\"},\r\n{\"eth_type\": \"ipv4\"},\r\n{\"tcp_dst\": \"80\"}],\r\n\"instructions\": [{\"apply_actions\": [{\"output\": 1}]}]\r\n},\r\n\r\n{\r\n\"priority\": 30000,\r\n\"table_id\": 200,\r\n\"idle_timeout\": 60,\r\n\"match\": [\r\n{ \"ipv4_src\": \"10.0.0.5\"},\r\n{\"ipv4_dst\": \"10.0.0.3\"},\r\n{\"ip_proto\": \"tcp\"},\r\n{\"eth_type\": \"ipv4\"},\r\n{\"tcp_dst\": \"80\"}],\r\n\"instructions\": [{\"apply_actions\": [{\"output\": 5}]}]\r\n}\r\n]\r\n}\r\n.  Please refer to the HP VAN SDN Controller JSON schema for more information."&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ResPonse Code&lt;/P&gt;&lt;P&gt;400&lt;/P&gt;&lt;P&gt;*************************************************************************************************&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to make two flowJson?&amp;nbsp;Could I make it possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 00:29:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/how-can-i-make-more-than-two-flows-using-rest-api/m-p/6677381#M597</guid>
      <dc:creator>sylee</dc:creator>
      <dc:date>2014-11-25T00:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: how can I make more than two flows using rest api?</title>
      <link>https://community.hpe.com/t5/software-defined-networking/how-can-i-make-more-than-two-flows-using-rest-api/m-p/6681607#M613</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment I am researching your issue with our engineering department. Once I get an answer from our team I will contact you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;P&gt;CSC CoE SDN&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 09:54:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/how-can-i-make-more-than-two-flows-using-rest-api/m-p/6681607#M613</guid>
      <dc:creator>piricchio72</dc:creator>
      <dc:date>2014-12-05T09:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: how can I make more than two flows using rest api?</title>
      <link>https://community.hpe.com/t5/software-defined-networking/how-can-i-make-more-than-two-flows-using-rest-api/m-p/6692072#M633</link>
      <description>&lt;P&gt;Hello &lt;SPAN&gt;sylee,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I just received a confirmation that unfortunately adding more than one flow via the Rest API is not supported.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SDN Team&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2015 16:06:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/how-can-i-make-more-than-two-flows-using-rest-api/m-p/6692072#M633</guid>
      <dc:creator>piricchio72</dc:creator>
      <dc:date>2015-01-08T16:06:56Z</dc:date>
    </item>
  </channel>
</rss>

