Yes, that's correct.

On Sun, May 8, 2016 at 1:33 AM, Danijel Teslic <[email protected]>
wrote:

> Thank you everybody for your help. As I can see from the link Anil
> provided port masking should be supported in Lithium-SR4 version, so I
> should just install that version and it should be OK?
>
> On 7 May 2016 at 00:20, Jamo Luhrsen <[email protected]> wrote:
>
>>
>>
>> On 05/06/2016 03:09 PM, Anil Vishnoi wrote:
>> > Hi Daniel,
>> >
>> > OpenFlow protocol (spec 1.3) don't have support for L4 port range/mask,
>> so that's the reason ODL openflowplugin yang model don't have support for
>> that.
>> >
>> > When you directly installing it on the OVS through CLI, it's working
>> because it's using Nicira extension port mask feature to enable the support
>> for
>> > port range matching. ODL openflowplugin do support the port range
>> nicira extension, so you can use that to install you flows. Please
>> following this
>> > gerrit patch for more details.
>> >
>> > https://git.opendaylight.org/gerrit/#/c/32170/
>> >
>> > You can look at the yang file to build your restconf body to use port
>> range.
>>
>> this is a big leap, imho, for people to figure out.  any chance we have
>> any
>> restconf body examples using the nicira extension?
>>
>> I found this template [0] which might help to figure it out, but hoping
>> there
>> are other examples.
>>
>> JamO
>>
>> [0]
>> https://github.com/opendaylight/integration-test/blob/master/tools/odl-mdsal-clustering-tests/clustering-performance-test/nicira-ext-all.json
>>
>>
>> > Thanks
>> > Anil
>> >
>> > On Fri, May 6, 2016 at 2:11 PM, Luis Gomez <[email protected] <mailto:
>> [email protected]>> wrote:
>> >
>> >     Hi Daniel, as you pointed out in the yang model, I do not think
>> this is supported in ODL today.
>> >
>> >>     On May 6, 2016, at 12:19 AM, Danijel Teslic <[email protected]
>> <mailto:[email protected]>> wrote:
>> >>
>> >>     Hello,
>> >>
>> >>     I'm trying to add a flow on my OVS with tcp port range (e.g.
>> 1000-1007) via OpenDaylight Lithium controller. I have successfuly
>> installed this
>> >>     flow directly through CLI on my OVS (command: sudo ovs-ofctl
>> add-flow bridge1
>> dl/type=0x800,nw/proto=6,tp_dst=1000/65528,actions=output:1) so I
>> >>     know my OVS version supports this.
>> >>
>> >>     What I want to do now is send REST command to my controller, and
>> then the controller sends appropriate OpenFlow command to OVS which will add
>> >>     specified flow. To do this, I need appropirate XML body to send in
>> my REST command. I've tried with the .xml body presented below, but I'm
>> >>     getting an error.
>> >>
>> >>     |<?xml
>> >>
>>  
>> version="1.0"encoding="UTF-8"standalone="no"?><flowxmlns="urn:opendaylight:flow:inventory"><instructions><instruction><order>0</order><apply-actions><action><order>0</order><output-action><output-node-connector>1</output-node-connector><max-length>60</max-length></output-action></action></apply-actions></instruction></instructions><table_id>0</table_id><id>252</id><match><ethernet-match><ethernet-type><type>2048</type></ethernet-type></ethernet-match><ip-match><ip-protocol>6</ip-protocol></ip-match><tcp-source-port>1000/65528</tcp-source-port></match><hard-timeout>0</hard-timeout><cookie>10</cookie><idle-timeout>0</idle-timeout><flow-name>flow-instruction-go-to-tablee</flow-name><priority>400</priority></flow>|
>> >>
>> >>     I think that I'm not using correct .xml tag for tcp port since I
>> get an error below.
>> >>
>> >>
>>  
>> |<errorsxmlns="urn:ietf:params:xml:ns:yang:ietf-restconf"><error><error-type>protocol</error-type><error-tag>malformed-message</error-tag><error-message>Error
>> >>     parsing input: Incorrect lexical representation of integer value:
>> 1000/65528. An integer value can be defined as: - a decimal number, - a
>> >>     hexadecimal number (prefix 0x), - an octal number (prefix 0).
>> Signed values are allowed. Spaces between digits are NOT
>> >>     allowed.</error-message></error></errors>|
>> >>     It seems that the YANG model does not support tcp port masking
>> according to this
>> >>     link
>> https://github.com/opendaylight/openflowplugin/blob/master/model/model-flow-base/src/main/yang/opendaylight-match-types.yang#L203-L212
>> >>
>> >>     Could you please clarify if this is really the case and if not,
>> provide correct syntax for adding tcp port with a mask?
>> >>     _______________________________________________
>> >>     openflowplugin-dev mailing list
>> >>     [email protected] <mailto:
>> [email protected]>
>> >>     https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
>> >
>> >
>> >     _______________________________________________
>> >     openflowplugin-dev mailing list
>> >     [email protected] <mailto:
>> [email protected]>
>> >     https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
>> >
>> >
>> >
>> >
>> > --
>> > Thanks
>> > Anil
>> >
>> >
>> > _______________________________________________
>> > openflowplugin-dev mailing list
>> > [email protected]
>> > https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
>> >
>>
>
>


-- 
Thanks
Anil
_______________________________________________
openflowplugin-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev

Reply via email to