Hi Luis,
Here is the request:
URL:
http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/1234
<http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/1234>
METHOD: PUT
BODY:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow xmlns="urn:opendaylight:flow:inventory">
<barrier>false</barrier>
<cookie>10</cookie>
<cookie_mask>10</cookie_mask>
<flags>SEND_FLOW_REM</flags>
<flow-name>FooXf1</flow-name>
<hard-timeout>0</hard-timeout>
<id>1234</id>
<idle-timeout>0</idle-timeout>
<installHw>false</installHw>
<instructions>
<instruction>
<apply-actions>
<action>
<order>0</order>
<nfx-action-set-payload-ip
xmlns="urn:opendaylight:openflowplugin:extension:noviflow:action">
<payload_size>1</payload_size>
<payload_offset>0</payload_offset>
<hasmask>0</hasmask>
<data>9</data>
</nfx-action-set-payload-ip>
</action>
</apply-actions>
<order>0</order>
</instruction>
</instructions>
<priority>2</priority>
<strict>false</strict>
<table_id>2</table_id>
</flow>
Thanks a lot!
> Le 10 avr. 2017 à 18:31, Luis Gomez <[email protected]> a écrit :
>
> Hi Yann, can you paste here the REST request (URL, method, body) you are
> pushing to config DS. Normally what you put in config DS should first go to
> switch and then be reported in oper DS after flow stats are collected by
> controller.
>
> BR/Luis
>
>
>> On Apr 10, 2017, at 1:50 PM, yann bourdeau <[email protected]>
>> wrote:
>>
>> Hi!
>>
>> I’m still having issues with my FlowMod with experimenters action that
>> does go in configuration data store, but it never goes to the operational
>> data store and the switch. I have looked at the code how it works in
>> RestConf (module NetConf). I went through to code until BrokerFacade.java in
>> sal-rest-connector. The flow got added to the config data store. I have
>> assumed that some kind of RPC should be called when this store is modified.
>> I have put traces in functions registerListeners and invokeRPC. They are
>> never called. I was not able to find documentation on how the relationship
>> between the config data store and the operational store work. Can someone
>> enlighten me? Putting the flow via the RPC (add:flow) call in REST works
>> without an issue(it pushes to the switch my flow with experimenter action).
>> Any help or documentation will be greatly appreciated.
>>
>> Thanks,
>>
>> Yann Bourdeau, M.Ing.
>> Senior Software Developer
>> 438-499-4607
>> [email protected]
>>
>>
>>
>> _______________________________________________
>> openflowplugin-dev mailing list
>> [email protected]
>> https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
>
Yann Bourdeau, M.Ing.
Senior Software Developer
438-499-4607
[email protected]
_______________________________________________
openflowplugin-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev