[yangtools-dev] WriteFlow error
Michal Rehak -X (mirehak - PANTHEON TECHNOLOGIES@Cisco) <mirehak@...>
Hi Giannis,
add-flow is routed rpc and needs a node-ref identifier in input (field "node"). This error message usually appears when the node is not connected or the identifier is completely missing in the input.
Regards, Michal
From: yangtools-dev-bounces@... <yangtools-dev-bounces@...> on behalf of John Schistos <jschistos@...>
Sent: Monday, November 30, 2015 15:11 To: l2switch-dev@...; openflowplugin-dev@...; openflowjava-dev@...; yangtools-dev@... Subject: [yangtools-dev] WriteFlow error I try to push some flows programmatically to some switches but I get this error:
GiannisWriteFlow Error: org.opendaylight.controller.md.sal.dom.api.DOMRpcImplementationNotAvailableException: No local or remote implementation available for rpc AbsoluteSchemaPath{path=[(urn:opendaylight:flow:service?revision=2013-08-19)add-flow]} Could u help plz?Thanx in advance. |
John Schistos <jschistos@...>
Hi Michal, So, I should specify the node-ref identifier in the code?Right?On Mon, Nov 30, 2015 at 4:38 PM, Michal Rehak -X (mirehak - PANTHEON TECHNOLOGIES at Cisco) <mirehak@...> wrote:
|
Michal Rehak -X (mirehak - PANTHEON TECHNOLOGIES@Cisco) <mirehak@...>
Yes, exactly.
Please get inspired by: (/openFlowPlugin/test-common)
Regards, Michal
From: John Schistos <jschistos@...>
Sent: Monday, November 30, 2015 16:02 To: Michal Rehak -X (mirehak - PANTHEON TECHNOLOGIES at Cisco) Cc: l2switch-dev@...; openflowplugin-dev@...; openflowjava-dev@...; yangtools-dev@... Subject: Re: [yangtools-dev] WriteFlow error Hi Michal,
So, I should specify the node-ref identifier in the code?Right?On Mon, Nov 30, 2015 at 4:38 PM, Michal Rehak -X (mirehak - PANTHEON TECHNOLOGIES at Cisco)
<mirehak@...> wrote:
|
John Schistos <jschistos@...>
I l come back if I have questions Thank you On Mon, Nov 30, 2015 at 5:30 PM, Michal Rehak -X (mirehak - PANTHEON TECHNOLOGIES at Cisco) <mirehak@...> wrote:
|
John Schistos <jschistos@...>
Your solution solvet it, although now, when I set the Ipv4Match field, the flow is not inserted in the switch (although no error is thrown).IOt says it is inserted correctly but nothing happens.Before, when I was using only EthernetMatch it was working fine.Do u have any ideas for this? On Mon, Nov 30, 2015 at 9:55 PM, John Schistos <jschistos@...> wrote:
|
Michal Rehak -X (mirehak - PANTHEON TECHNOLOGIES@Cisco) <mirehak@...>
Hi John, you can inspect traffic via wireshark and also add a callback to listenable future returned by the flowServvice.addFlow().
... Futures.addCallback(listenableFuture, ...inline function class)
Regards, Michal
From: John Schistos <jschistos@...>
Sent: Tuesday, December 1, 2015 14:50 To: Michal Rehak -X (mirehak - PANTHEON TECHNOLOGIES at Cisco) Cc: l2switch-dev@...; openflowplugin-dev@...; openflowjava-dev@...; yangtools-dev@... Subject: Re: [yangtools-dev] WriteFlow error Your solution solvet it, although now, when I set the Ipv4Match field, the flow is not inserted in the switch (although no error is thrown).IOt says it is inserted correctly but nothing happens.Before, when I was using only EthernetMatch it was
working fine.Do u have any ideas for this?
On Mon, Nov 30, 2015 at 9:55 PM, John Schistos
<jschistos@...> wrote:
|
John Schistos <jschistos@...>
OK, it worked.Thank you. One last thing, if you can:I want , in the flow that I am passing, to be able to alter the ipv4-src match field, and use a match field of my own.What I mean exactly:I wont for example to use a 10.0.0.1/-23 ipv4 prefix match in the flow.That's an example not what I want but I think you get the point.How exactly am I able to do that?Is it by the use of augmentation in yang?And if yes, can you give me an example on my example above?I would really appreciate your help. Thanx in advance. On Tue, Dec 1, 2015 at 4:33 PM, Michal Rehak -X (mirehak - PANTHEON TECHNOLOGIES at Cisco) <mirehak@...> wrote:
|