<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding Meters to datapaths in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/adding-meters-to-datapaths/m-p/6579660#M1524</link>
    <description>&lt;P&gt;Ok. Turned out to be the hp-sdn-client python code had a bug. HP R&amp;amp;D folks lend a helping hand in fixing it. It was nice. I was able to create the meter on physical openflow1.3 enabled switches. The code fails when tried with virtual&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have experience in working with openflow 1.3 meters on virtual environment( mininet-openvswitch)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;</description>
    <pubDate>Wed, 20 Aug 2014 11:46:40 GMT</pubDate>
    <dc:creator>Pradeep_30</dc:creator>
    <dc:date>2014-08-20T11:46:40Z</dc:date>
    <item>
      <title>Adding Meters to datapaths</title>
      <link>https://community.hpe.com/t5/software-defined-networking/adding-meters-to-datapaths/m-p/6575222#M1523</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following code for adding meter is giving me invalid jason error. Could anyone spare some time in identifying the root cause?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;meter_band = hp.datatypes.MeterBand(mtype = "drop", rate=10000)
flags = ["kbps"]
bands = [meter_band]
meter = hp.datatypes.Meter(id = 1, command = "add", flags = flags, bands = bands)
api.add_meter(d.dpid, meter)

 &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#********* Error&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "rate_limit.py", line 44, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; api.add_meter(d.dpid, meter)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Python27\lib\site-packages\hpsdnclient\of.py", line 194, in add_meter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; r = self.restclient.post(url, json.dumps(meter.to_dict()))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Python27\lib\site-packages\hpsdnclient\rest.py", line 143, in post&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise_errors(r)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Python27\lib\site-packages\hpsdnclient\error.py", line 27, in raise_errors&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise_400(response)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Python27\lib\site-packages\hpsdnclient\error.py", line 43, in raise_400&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data['message'])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hpsdnclient.error.InvalidJson: Invalid JSON format: null.&amp;nbsp; Please refer to the HP VAN SDN Controller JSON&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;</description>
      <pubDate>Sat, 16 Aug 2014 06:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/adding-meters-to-datapaths/m-p/6575222#M1523</guid>
      <dc:creator>Pradeep_30</dc:creator>
      <dc:date>2014-08-16T06:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Meters to datapaths</title>
      <link>https://community.hpe.com/t5/software-defined-networking/adding-meters-to-datapaths/m-p/6579660#M1524</link>
      <description>&lt;P&gt;Ok. Turned out to be the hp-sdn-client python code had a bug. HP R&amp;amp;D folks lend a helping hand in fixing it. It was nice. I was able to create the meter on physical openflow1.3 enabled switches. The code fails when tried with virtual&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have experience in working with openflow 1.3 meters on virtual environment( mininet-openvswitch)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2014 11:46:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/adding-meters-to-datapaths/m-p/6579660#M1524</guid>
      <dc:creator>Pradeep_30</dc:creator>
      <dc:date>2014-08-20T11:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Meters to datapaths</title>
      <link>https://community.hpe.com/t5/software-defined-networking/adding-meters-to-datapaths/m-p/6597278#M1525</link>
      <description>&lt;P&gt;Hello Pradeep,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use RESTAPI &amp;nbsp;POST /sdn/v2.0/of/datapaths/{dpid}/meters &amp;nbsp;[REST API Doc page 57] to create meter however if you are trying the same with some code[python] , please share the code/error/screen shot in case you are facing some problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;HP SDN Team&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2014 09:36:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/adding-meters-to-datapaths/m-p/6597278#M1525</guid>
      <dc:creator>sdnindia</dc:creator>
      <dc:date>2014-09-01T09:36:45Z</dc:date>
    </item>
  </channel>
</rss>

