Hi Tomas,

I've tried right now using the XML that you sent, but I got the following
response:

   - Trying with <band-type>

{
  "errors": {
    "error": [
      {
        "error-type": "protocol",
        "error-tag": "malformed-message",
        "error-message": "Error parsing input: Unknown child(ren) node(s)
detected, identified by: (urn:opendaylight:flow:inventory)band-type, in:
ChoiceEffectiveStatementImpl[qname=(urn:opendaylight:flow:inventory?revision=2013-08-19)band-type]"
      }
    ]
  }
}


   - Trying with <dscp-remark>

{
  "errors": {
    "error": [
      {
        "error-type": "protocol",
        "error-tag": "malformed-message",
        "error-message": "Error parsing input: Unknown child(ren) node(s)
detected, identified by: (urn:opendaylight:flow:inventory)dscp-remark, in:
list meter-band-header"
      }
    ]
  }
}

PS: I'm using the OFP Master branch.




On Mon, Feb 27, 2017 at 12:07 PM, Tomáš Slušný <[email protected]>
wrote:

> * Instead of <band-type> probably use <dscp-remark>, I forgot that
> <band-type> is YANG choice.
> ------------------------------
> *Od:* Tomáš Slušný <[email protected]>
> *Odoslané:* 27. februára 2017 16:01
> *Komu:* Yrineu Rodrigues; Anil Vishnoi
> *Kópia:* Developers; [email protected]
>
> *Predmet:* Re: [openflowplugin-dev] [ODL | OpenFlow plugin | Create
> Meters on OVS]
>
>
> Hi Yrineu,
>
>
> OpenflowPlugin currently supports only OpenFlow 1.0 and OpenFlow 1.3, but
> it should not matter that much. After looking at your XML again, I think
> you are using incorrect format for submitting it. Correct format should
> look something like this:
>
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <meter xmlns="urn:opendaylight:flow:inventory">
>     <container-name>serro</container-name>
>     <flags>meter-burst</flags>
>     <meter-band-headers>
>         <meter-band-header>
>
>             <band-type>
>                 <dscp-remark-burst-size>5</dscp-remark-burst-size>
>                 <dscp-remark-rate>12</dscp-remark-rate>
>                 <prec_level>1</prec_level>
>
>             </band-type>
>             <meter-band-types>
>                 <flags>ofpmbt-dscp-remark</flags>
>             </meter-band-types>
>         </meter-band-header>
>     </meter-band-headers>
>     <meter-id>4</meter-id>
>     <meter-name>mymeter</meter-name>
> </meter>
>
>
> Atleast based on our current serialization and deserialization logic.
> Fields:
>
> <band-burst-size>
> <band-id>
> <band-rate>
>
>
> are ignored during serialization, so I think you can safely omit them.
> ------------------------------
> *Od:* Yrineu Rodrigues <[email protected]>
> *Odoslané:* 27. februára 2017 14:48
> *Komu:* Anil Vishnoi
> *Kópia:* Abhijit Kumbhare; Tomáš Slušný; Developers;
> [email protected]
> *Predmet:* Re: [openflowplugin-dev] [ODL | OpenFlow plugin | Create
> Meters on OVS]
>
> Hi Folks,
> At fist, thanks a lot Anil, Abhijit and Tomas for your attention!
>
> Yes, I'm using Pica8, I've tried with other OVS instances and Meters
> doesn't works properly as mentioned before by Tomas, but on Pica8 we're
> able to create meters. This Pica8 is configured using OpenFlow1.4, I saw
> that OFP Boron release doesn't works properly with this version, but Carbon
> works fine.
>
> You think that can be something related to OpenFlow version + OFP version?
>
> regards.
>
> On Sat, Feb 25, 2017 at 6:38 PM, Anil Vishnoi <[email protected]>
> wrote:
>
>> I think Yrineu is using PicaOS that is OVSDB based switch.
>>
>> On Sat, Feb 25, 2017 at 10:04 AM, Abhijit Kumbhare <[email protected]
>> > wrote:
>>
>>> Yes - that is what I thought.
>>>
>>> On Sat, Feb 25, 2017 at 1:49 AM, Tomáš Slušný <
>>> [email protected]> wrote:
>>>
>>>> Hi Yrineu,
>>>>
>>>>
>>>> According to OVS FAQ (http://docs.openvswitch.org/en/latest/faq/qos/)
>>>> <http://docs.openvswitch.org/en/latest/faq/qos/> OVS switches do not
>>>> support meters, so that is why it is not working for you.
>>>>
>>>>
>>>> Regards,
>>>>
>>>> Tomas Slusny
>>>> ------------------------------
>>>> *Od:* Yrineu Rodrigues <[email protected]>
>>>> *Odoslané:* 25. februára 2017 0:51
>>>> *Komu:* [email protected]
>>>> *Kópia:* Developers
>>>> *Predmet:* [openflowplugin-dev] [ODL | OpenFlow plugin | Create Meters
>>>> on OVS]
>>>>
>>>> Hi OFP team,
>>>>
>>>> I'm trying to create a meter on my OVS instance using the following
>>>> body:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
>>>> <meter xmlns="urn:opendaylight:flow:inventory">
>>>>     <container-name>serro</container-name>
>>>>     <flags>meter-burst</flags>
>>>>     <meter-band-headers>
>>>>         <meter-band-header>
>>>>             <band-burst-size>444</band-burst-size>
>>>>             <band-id>0</band-id>
>>>>             <band-rate>5120</band-rate>
>>>>             <dscp-remark-burst-size>5</dscp-remark-burst-size>
>>>>             <dscp-remark-rate>12</dscp-remark-rate>
>>>>             <prec_level>1</prec_level>
>>>>             <meter-band-types>
>>>>                 <flags>ofpmbt-dscp-remark</flags>
>>>>             </meter-band-types>
>>>>         </meter-band-header>
>>>>     </meter-band-headers>
>>>>     <meter-id>4</meter-id>
>>>>     <meter-name>mymeter</meter-name>
>>>> </meter>
>>>>
>>>> PUT > http://192.168.1.2:8181/restconf/config/opendaylight-inven
>>>> tory:nodes/node/openflow:1/meter/4
>>>>
>>>> I can see the meter created on the datastore, but it doesn't being
>>>> reflected on my OVS instance.
>>>>
>>>> I'm trying with 'OFP-Carbon' release, the only feature installed is
>>>> 'odl-openflowplugin-all-he'
>>>>
>>>> Please, let me know if I'm missing something to be installed or some
>>>> parameter.
>>>>
>>>> PS: No changes on LOG and wireshark pcap.
>>>>
>>>> Thanks in advance,
>>>> --
>>>> *Yrineu Rodrigues*
>>>> Software Engineer
>>>>
>>>> *SERRO*
>>>> www.serro.com
>>>> LinkedIn • Facebook • YouTube • Vimeo • Twitter  *@TeamSerro*
>>>>
>>>> *Disclaimer: This e-mail message contains information intended solely
>>>> for the intended recipient and is confidential or private in nature. If you
>>>> are not the intended recipient, you must not read, disseminate, distribute,
>>>> copy or otherwise use this message or any file attached to this message.
>>>> Any such unauthorized use is prohibited and may be unlawful. If you have
>>>> received this message in error, please notify the sender immediately by
>>>> email, facsimile or telephone and then delete the original message from
>>>> your machine.*
>>>>
>>>>
>>>> *San Francisco  |  Santa Clara  |  New York  |  Toronto  |  Mumbai  |
>>>> Pune *
>>>>
>>>>
>>>>
>>>> TomášSlušný
>>>>
>>>> Software Developer
>>>>
>>>>
>>>> Sídlo / Mlynské Nivy 56 / 821 05 Bratislava / Slovakia
>>>> R&D centrum / Janka Kráľa 9 /  974 01 Banská Bystrica / Slovakia
>>>> +421 911 083 902 <+421%20911%20083%20902> / [email protected]
>>>> reception: +421 2 206 65 114 / www.pantheon.tech
>>>>
>>>> [image: logo]
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> openflowplugin-dev mailing list
>>>> [email protected]
>>>> https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
>>>>
>>>>
>>>
>>> _______________________________________________
>>> openflowplugin-dev mailing list
>>> [email protected]
>>> https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
>>>
>>>
>>
>>
>> --
>> Thanks
>> Anil
>>
>
>
>
> --
> *Yrineu Rodrigues*
> Software Engineer
>
> *SERRO*
> www.serro.com
> LinkedIn • Facebook • YouTube • Vimeo • Twitter  *@TeamSerro*
>
> *Disclaimer: This e-mail message contains information intended solely for
> the intended recipient and is confidential or private in nature. If you are
> not the intended recipient, you must not read, disseminate, distribute,
> copy or otherwise use this message or any file attached to this message.
> Any such unauthorized use is prohibited and may be unlawful. If you have
> received this message in error, please notify the sender immediately by
> email, facsimile or telephone and then delete the original message from
> your machine.*
>
>
> *San Francisco  |  Santa Clara  |  New York  |  Toronto  |  Mumbai  |
> Pune *
>
>
>
> TomášSlušný
>
> Software Developer
>
>
> Sídlo / Mlynské Nivy 56 / 821 05 Bratislava / Slovakia
> R&D centrum / Janka Kráľa 9 /  974 01 Banská Bystrica / Slovakia
> +421 911 083 902 <+421%20911%20083%20902> / [email protected]
> reception: +421 2 206 65 114 / www.pantheon.tech
>
> [image: logo]
>
>
>
>
>
> TomášSlušný
>
> Software Developer
>
>
> Sídlo / Mlynské Nivy 56 / 821 05 Bratislava / Slovakia
> R&D centrum / Janka Kráľa 9 /  974 01 Banská Bystrica / Slovakia
> +421 911 083 902 <+421%20911%20083%20902> / [email protected]
> reception: +421 2 206 65 114 / www.pantheon.tech
>
> [image: logo]
>
>
>



-- 
*Yrineu Rodrigues*
Software Engineer

*SERRO*
www.serro.com
LinkedIn • Facebook • YouTube • Vimeo • Twitter  *@TeamSerro*

*Disclaimer: This e-mail message contains information intended solely for
the intended recipient and is confidential or private in nature. If you are
not the intended recipient, you must not read, disseminate, distribute,
copy or otherwise use this message or any file attached to this message.
Any such unauthorized use is prohibited and may be unlawful. If you have
received this message in error, please notify the sender immediately by
email, facsimile or telephone and then delete the original message from
your machine.*


*San Francisco  |  Santa Clara  |  New York  |  Toronto  |  Mumbai  |  Pune*
_______________________________________________
openflowplugin-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev

Reply via email to