<?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: Setting port state in REST API? in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/setting-port-state-in-rest-api/m-p/6469426#M1379</link>
    <description>&lt;P&gt;Hello stacehip,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doing a follow up to check if you need any further assistance with respect to the query posted.&lt;/P&gt;&lt;P&gt;Please do let us know&amp;nbsp; if your problem is solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have more questions on the same topic please do reply on the same thread or open a new post if new topic.&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>Thu, 08 May 2014 11:13:22 GMT</pubDate>
    <dc:creator>sdnindia</dc:creator>
    <dc:date>2014-05-08T11:13:22Z</dc:date>
    <item>
      <title>Setting port state in REST API?</title>
      <link>https://community.hpe.com/t5/software-defined-networking/setting-port-state-in-rest-api/m-p/6421796#M1377</link>
      <description>&lt;P&gt;looking at the documentation I can see I can enable or disable a port using /of/datapaths/{dpid}/ports/{port_id}/action and RSdoc gives a working example. Unfortunatly when you disable a port you lose the link so the topology changes. I just want to stop traffic flowing over the port. I know I could do this with a flow but setting the state would be easier.&lt;BR /&gt;&lt;BR /&gt;Can anyone point me to how to set the state? From the object model i can see there are 7 possible states but i can find how to change them (see below).&lt;BR /&gt;&lt;BR /&gt;"state": {&lt;BR /&gt;"description": "Port states",&lt;BR /&gt;"type": "array",&lt;BR /&gt;"items": {&lt;BR /&gt;"enum": ["link_down",&lt;BR /&gt;"blocked",&lt;BR /&gt;"live",&lt;BR /&gt;"stp_listen",&lt;BR /&gt;"stp_learn",&lt;BR /&gt;"stp_forward",&lt;BR /&gt;"stp_block"]&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Sun, 23 Mar 2014 16:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/setting-port-state-in-rest-api/m-p/6421796#M1377</guid>
      <dc:creator>stacehip</dc:creator>
      <dc:date>2014-03-23T16:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Setting port state in REST API?</title>
      <link>https://community.hpe.com/t5/software-defined-networking/setting-port-state-in-rest-api/m-p/6460466#M1378</link>
      <description>&lt;P&gt;Hello stacehip,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to version 2.0.0 of the sdn-apidoc, PortState (com.hp.of.lib.msg) is “read-only and cannot be changed by the controller.”&amp;nbsp; So it’s not possible to set a port to link_down, blocked, live, etc.&lt;/P&gt;&lt;P&gt;All port flags are read-only and when the port flags are changed, the switch sends a {@link MessageType#PORT_STATUS } message to notify the controller of the change.&lt;/P&gt;&lt;P&gt;So we cannot set the port states through the controller.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this answers your query, please feel free to reply if you have any addition queries related to this topic.&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>Tue, 29 Apr 2014 09:01:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/setting-port-state-in-rest-api/m-p/6460466#M1378</guid>
      <dc:creator>sdnindia</dc:creator>
      <dc:date>2014-04-29T09:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting port state in REST API?</title>
      <link>https://community.hpe.com/t5/software-defined-networking/setting-port-state-in-rest-api/m-p/6469426#M1379</link>
      <description>&lt;P&gt;Hello stacehip,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doing a follow up to check if you need any further assistance with respect to the query posted.&lt;/P&gt;&lt;P&gt;Please do let us know&amp;nbsp; if your problem is solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have more questions on the same topic please do reply on the same thread or open a new post if new topic.&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>Thu, 08 May 2014 11:13:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/setting-port-state-in-rest-api/m-p/6469426#M1379</guid>
      <dc:creator>sdnindia</dc:creator>
      <dc:date>2014-05-08T11:13:22Z</dc:date>
    </item>
  </channel>
</rss>

