Re: [openflowplugin-dev] Sending flow to switch but NOT the config database?
I did as you suggested but no flow appears and I see the following error in my log: java.util.concurrent.ExecutionException: org.opendaylight.controller.md.sal.dom.api.DOMRpcImplementationNotAvailableException: No implementation of RPC AbsoluteSchemaPath{path=[(urn:opendaylight:flow:service?revision=2013-08-19)add-flow]} available at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79) at gov.nist.antd.sdnmud.impl.FlowWriter.writeFlow(FlowWriter.java:69) I just got the FlowService and called the addFlow method of the flow service. Should I do anything prior to making that call? Thanks. On Thu, Jul 12, 2018 at 4:45 PM, Luis Gomez wrote: > You can send openflow RPC like the example below: > > POST http://192.168.0.101:8181/restconf/operations/sal-flow:add-flow > { > "input": { > "opendaylight-flow-service:node":"/opendaylight- > inventory:nodes/opendaylight-inventory:node[opendaylight- > inventory:id='openflow:1']", > "priority": 2, > "flow-name": "flow1", > "table_id": 0, > "hard-timeout": 0, > "instructions": { > "instruction": [ > { > "order": 0, > "apply-actions": { > "action": [ > { > "order": 0, > "output-action": { > "output-node-connector": "1" > } > } > ] > } > } > ] > }, > "idle-timeout": 0, > "match": { > "ipv4-destination": "10.0.10.0/24", > "ethernet-match": { > "ethernet-type": { > "type": 2048 > } > } > } > } > } > > > > > On Jul 12, 2018, at 12:09 PM, M. Ranganathan wrote: > > > > I am using OpendDaylight Nitrogen. In order to send a flow to the > switch, I write to the CONFIG database - which winds up sending the flow to > the switch. However, I want faster performance for ephemeral flows . How > can I send the flow to the switch without involving the CONFIG database? > > > > Thanks, > > > > Ranga > > > > -- > > M. Ranganathan > > > > ___ > > openflowplugin-dev mailing list > > openflowplugin-dev@lists.opendaylight.org > > https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev > > -- M. Ranganathan ___ openflowplugin-dev mailing list openflowplugin-dev@lists.opendaylight.org https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
Re: [openflowplugin-dev] Sending flow to switch but NOT the config database?
Yes, you wll have to use SalFlowService and it's not deprecated. On Thu, Jul 12, 2018 at 1:52 PM M. Ranganathan wrote: > Thanks, if I had to do this from within a Java app, I assume I'd have to > use the SalFlowService. Is that not deprecated ? If so, what is the MdSal > alternative? > > Regads, > > Ranga > > On Thu, Jul 12, 2018 at 4:45 PM, Luis Gomez wrote: > >> You can send openflow RPC like the example below: >> >> POST http://192.168.0.101:8181/restconf/operations/sal-flow:add-flow >> { >> "input": { >> >> "opendaylight-flow-service:node":"/opendaylight-inventory:nodes/opendaylight-inventory:node[opendaylight-inventory:id='openflow:1']", >> "priority": 2, >> "flow-name": "flow1", >> "table_id": 0, >> "hard-timeout": 0, >> "instructions": { >> "instruction": [ >> { >> "order": 0, >> "apply-actions": { >> "action": [ >> { >> "order": 0, >> "output-action": { >> "output-node-connector": "1" >> } >> } >> ] >> } >> } >> ] >> }, >> "idle-timeout": 0, >> "match": { >> "ipv4-destination": "10.0.10.0/24", >> "ethernet-match": { >> "ethernet-type": { >> "type": 2048 >> } >> } >> } >> } >> } >> >> >> >> > On Jul 12, 2018, at 12:09 PM, M. Ranganathan wrote: >> > >> > I am using OpendDaylight Nitrogen. In order to send a flow to the >> switch, I write to the CONFIG database - which winds up sending the flow to >> the switch. However, I want faster performance for ephemeral flows . How >> can I send the flow to the switch without involving the CONFIG database? >> > >> > Thanks, >> > >> > Ranga >> > >> > -- >> > M. Ranganathan >> > >> > ___ >> > openflowplugin-dev mailing list >> > openflowplugin-dev@lists.opendaylight.org >> > https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev >> >> > > > -- > M. Ranganathan > > ___ > openflowplugin-dev mailing list > openflowplugin-dev@lists.opendaylight.org > https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev > -- Thanks Anil ___ openflowplugin-dev mailing list openflowplugin-dev@lists.opendaylight.org https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
Re: [openflowplugin-dev] Sending flow to switch but NOT the config database?
You can send openflow RPC like the example below: POST http://192.168.0.101:8181/restconf/operations/sal-flow:add-flow { "input": { "opendaylight-flow-service:node":"/opendaylight-inventory:nodes/opendaylight-inventory:node[opendaylight-inventory:id='openflow:1']", "priority": 2, "flow-name": "flow1", "table_id": 0, "hard-timeout": 0, "instructions": { "instruction": [ { "order": 0, "apply-actions": { "action": [ { "order": 0, "output-action": { "output-node-connector": "1" } } ] } } ] }, "idle-timeout": 0, "match": { "ipv4-destination": "10.0.10.0/24", "ethernet-match": { "ethernet-type": { "type": 2048 } } } } } > On Jul 12, 2018, at 12:09 PM, M. Ranganathan wrote: > > I am using OpendDaylight Nitrogen. In order to send a flow to the switch, I > write to the CONFIG database - which winds up sending the flow to the switch. > However, I want faster performance for ephemeral flows . How can I send the > flow to the switch without involving the CONFIG database? > > Thanks, > > Ranga > > -- > M. Ranganathan > > ___ > openflowplugin-dev mailing list > openflowplugin-dev@lists.opendaylight.org > https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev ___ openflowplugin-dev mailing list openflowplugin-dev@lists.opendaylight.org https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev