Configuring OpenFlow

OpenFlow is an open standardized interface that allows a software-defined networking (SDN) controller to manage the forwarding plane of a network. Cisco OpenFlow Agent provides better control over networks making them more open, programmable, and application-aware and supports the following specifications defined by the Open Networking Foundation (ONF) standards organization:

  • OpenFlow Switch Specification Version 1.0.1 (Wire Protocol 0x01) (referred to as OpenFlow 1.0)
  • OpenFlow Switch Specification Version 1.3.0 (Wire Protocol 0x04), referred to as OpenFlow 1.3 These specifications are based on the concept of an Ethernet switch, with an internal flow table and standardized interface to allow traffic flows on a device to be added or removed. OpenFlow 1.3 defines the communication channel between Cisco OpenFlow Agent and controllers. A controller can be Cisco Open SDN Controller, or any controller compliant with OpenFlow 1.3. In an OpenFlow network, Cisco OpenFlow Agent exists on the device and controllers exist on a server that is external to the device. Flow management and any network management are either part of a controller or accomplished through a controller. Flow management includes the addition, modification, or removal of flows, and the handling of OpenFlow error messages.

For more information, see the Cisco OpenFlow Agent for Nexus 3000 and 9000 Series Switches:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-installation-and-configuration-guides-list.html/

Enabling OpenFlow

Enabling OpenFlow
POST http://<mgmt0_IP>/api/mo/sys/fm.json
{
  "fmEntity": {
    "children": [
      {
        "fmOpenFlow": {
          "attributes": {
            "adminSt": ""
}}}]}}
{
    imdata:[]
}
<System>
  <fm-items>
    <openflow-items>
      <adminSt></adminSt>
    </openflow-items>
  </fm-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

feature openflow


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
fmEntity sys/fm
fmOpenFlow sys/fm/openflow


fmOpenFlow Properties

The following table contains information about the fmOpenFlow properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
adminStfm:AdminState
(scalar:Enum8)
Admin statusSELECTION:
1 -
2 - disabled
DEFAULT: disabled


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Disabling OpenFlow

Disabling OpenFlow
POST http://<mgmt0_IP>/api/mo/sys/fm.json
{
  "fmEntity": {
    "children": [
      {
        "fmOpenFlow": {
          "attributes": {
            "adminSt": "disabled"
}}}]}}
{
    imdata:[]
}
<System>
  <fm-items>
    <openflow-items>
      <adminSt>disabled</adminSt>
    </openflow-items>
  </fm-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

no feature openflow


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
fmEntity sys/fm
fmOpenFlow sys/fm/openflow


fmOpenFlow Properties

The following table contains information about the fmOpenFlow properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
adminStfm:AdminState
(scalar:Enum8)
Admin statusSELECTION:
1 -
2 - disabled
DEFAULT: disabled


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring OpenFlow

Configuring OpenFlow 
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
}}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Disabling OpenFlow

Disabling OpenFlow
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "disabled"
}}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>disabled</ofAdminSt>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

no openflow


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Choosing a Forwarding Profile

Choosing a Forwarding Profile  
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting a Forwarding Profile

Deleting a Forwarding Profile  
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "disabled"
}}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>disabled</ofAdminSt>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  no switch 1 pipeline 201


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring an OpenFlow Controller

Configuring an OpenFlow Controller 
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
switch 1 pipeline 201
controller ipv4 1.2.3.4


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Enabling Logging for Flow-Modify

Enabling Logging for Flow-Modify
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "logFlowMod": "yes"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <logFlowMod>true</logFlowMod>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   logging flow-mod


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
logFlowModscalar:Bool
OpenFlow Mod Requests Logging EnableSELECTION: true or false


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Disabling Logging for Flow-Modify

Disabling Logging for Flow-Modify  
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "logFlowMod": "no"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <logFlowMod>false</logFlowMod>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   no logging flow-mod


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
logFlowModscalar:Bool
OpenFlow Mod Requests Logging EnableSELECTION: true or false


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Adding an Interface to an OpenFlow Switch

Adding an Interface to an OpenFlow Switch   
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowIf": {
                      "attributes": {
                        "id": "eth1/2",
                        "ofPort": "enabled"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <if-items>
          <If-list>
            <id>eth1/2</id>
            <ofPort>enabled</ofPort>
          </If-list>
        </if-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   of-port interface ethernet 1/2


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowIf sys/openflow/pipeline-201/if-[eth1/2]


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowIf Properties

The following table contains information about the openflowIf properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idnw:IfId
(base:IfIndex)
To hold openflow port interface idMust match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100
ofPortnw:AdminSt
(scalar:Enum8)
Track whether Openflow is enabled on the InterfaceSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Removing an Interface to an OpenFlow Switch

Removing an Interface to an OpenFlow Switch    
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowIf": {
                      "attributes": {
                        "id": "eth1/2",
                        "ofPort": "disabled"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <if-items>
          <If-list>
            <id>eth1/2</id>
            <ofPort>disabled</ofPort>
          </If-list>
        </if-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   no of-port interface ethernet 1/2


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowIf sys/openflow/pipeline-201/if-[eth1/2]


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowIf Properties

The following table contains information about the openflowIf properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idnw:IfId
(base:IfIndex)
To hold openflow port interface idMust match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100
ofPortnw:AdminSt
(scalar:Enum8)
Track whether Openflow is enabled on the InterfaceSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring an OpenFlow Switch Shutdown

Configuring an OpenFlow Switch Shutdown 
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "shutdown": "enabled"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <shutdown>enabled</shutdown>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   shutdown


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
shutdownnw:AdminSt
(scalar:Enum8)
Shutdown OpenFlow Switch InstanceSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Unconfiguring an OpenFlow Switch Shutdown

Unconfiguring an OpenFlow Switch Shutdown 
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "shutdown": "disabled"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <shutdown>disabled</shutdown>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   no shutdown


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
shutdownnw:AdminSt
(scalar:Enum8)
Shutdown OpenFlow Switch InstanceSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring a Datapath Id

Configuring a Datapath Id  
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "datapathId": "123"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <datapathId>123</datapathId>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   datapath-id 123


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
datapathIdstring:Basic
OpenFlow Protocol Datapath Id
RANGE: [1 , 20]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Unconfiguring a Datapath Id

Unconfiguring a Datapath Id  
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "datapathId": ""
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <datapathId></datapathId>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   no datapath-id


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
datapathIdstring:Basic
OpenFlow Protocol Datapath Id
RANGE: [1 , 20]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring Forward to Normal Dataplane

Configuring Forward to Normal Dataplane
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "defaultMiss": "normal"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <defaultMiss>normal</defaultMiss>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   default-miss normal


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
defaultMissscalar:Enum8
Openflow Default Miss flow action
DEFAULT: drop


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Unconfiguring Forward to Normal Dataplane

Unconfiguring Forward to Normal Dataplane 
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "defaultMiss": "drop"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <defaultMiss>drop</defaultMiss>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   no default-miss


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
defaultMissscalar:Enum8
Openflow Default Miss flow action
DEFAULT: drop


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring Max-Backoff Timer

Configuring Max-Backoff Timer
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "maxBackOff": "123"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <maxBackOff>123</maxBackOff>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   max-backoff 123


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
maxBackOffscalar:Uint16
Openflow Protocol Max Backoff Timer
RANGE: [1 , 65535]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Unconfiguring Max-Backoff Timer

Unconfiguring Max-Backoff Timer
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "maxBackOff": "0"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <maxBackOff>0</maxBackOff>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   no max-backoff


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
maxBackOffscalar:Uint16
Openflow Protocol Max Backoff Timer
RANGE: [1 , 65535]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring OpenFlow Controller Probe Interval Timer

Configuring OpenFlow Controller Probe Interval Timer
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "probeInterval": "567"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <probeInterval>567</probeInterval>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   probe-interval 567


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
probeIntervalscalar:Uint16
Openflow Protocol Probe Interval
RANGE: [5 , 65535]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Unconfiguring OpenFlow Controller Probe Interval Timer

Unconfiguring OpenFlow Controller Probe Interval Timer 
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "probeInterval": "0"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <probeInterval>0</probeInterval>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   no probe-interval


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
probeIntervalscalar:Uint16
Openflow Protocol Probe Interval
RANGE: [5 , 65535]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring OpenFlow Protocol Version

Configuring OpenFlow Protocol Version  
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "protoVersion": "1.0"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <protoVersion>1.0</protoVersion>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   protocol-version 1.0


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
protoVersionscalar:Enum8
Openflow Protocol Version
DEFAULT: Negotiate


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Unonfiguring OpenFlow Protocol Version

Unonfiguring OpenFlow Protocol Version
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "protoVersion": "Negotiate"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <protoVersion>Negotiate</protoVersion>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   no protocol-version


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
protoVersionscalar:Enum8
Openflow Protocol Version
DEFAULT: Negotiate


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring the Source Address for Connection to Controllers

Configuring the Source Address for Connection to Controllers
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "sourceIpAddr": "1.2.3.4"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <sourceIpAddr>1.2.3.4</sourceIpAddr>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   source 1.2.3.4


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
sourceIpAddraddress:Ip
Source IP Addr for Connection to OpenFlow ControllerValue must match ipv4 or ipv6 known format


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Unconfiguring the Source Address for Connection to Controllers

Unconfiguring the Source Address for Connection to Controllers
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "sourceIpAddr": "0.0.0.0"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <sourceIpAddr>0.0.0.0</sourceIpAddr>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   no source 1.2.3.4


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
sourceIpAddraddress:Ip
Source IP Addr for Connection to OpenFlow ControllerValue must match ipv4 or ipv6 known format


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring Statistics-Related Commands
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "statsCollectInterval": "123"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <statsCollectInterval>123</statsCollectInterval>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   statistics collection-interval 123


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
statsCollectIntervalscalar:Uint16
OpenFlow Statistics Collection Interval
RANGE: [0 , 600]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Unconfiguring Statistics-Related Commands    
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "statsCollectInterval": "0"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <statsCollectInterval>0</statsCollectInterval>
        </agent-items>
      </Inst-list>
    </pipeline-items>
  </openflow-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
  switch 1 pipeline 201
   no statistics collection-interval


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-201
openflowAgent sys/openflow/pipeline-201/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
statsCollectIntervalscalar:Uint16
OpenFlow Statistics Collection Interval
RANGE: [0 , 600]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring Burst Rate-limit


POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "controllerBurstPPS": "2000",
                        "packetInPPS": "1000"
                      }
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <controllerBurstPPS>2000</controllerBurstPPS>
          <packetInPPS>1000</packetInPPS>
        </agent-items>
      </Inst-list>
    </pipeline-items>
</openflow-items>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow
 switch 1 pipeline 201
  rate-limit packet_in 1000 burst 2000
   username sample_user keypair generate dsa 1024


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-{pipelineId}
openflowAgent sys/openflow/pipeline-{pipelineId}/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
controllerBurstPPSscalar:Uint16
Openflow Channel Packets to Controller In PPS
RANGE: [0 , 65535]
DEFAULT: 0
packetInPPSscalar:Uint16
Openflow Channel Packets In Rate in PPS
RANGE: [0 , 65535]
DEFAULT: 0


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring a Rate-Limit


POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "openflowEntity": {
          "attributes": {
            "ofAdminSt": "enabled"
          },
          "children": [
            {
              "openflowInst": {
                "attributes": {
                  "pipelineId": "201"
                },
                "children": [
                  {
                    "openflowAgent": {
                      "attributes": {
                        "controllerBurstPPS": "0",
                        "packetInPPS": "0"
                      }
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}	
{
    imdata:[]
}
<openflow-items>
    <ofAdminSt>enabled</ofAdminSt>
    <pipeline-items>
      <Inst-list>
        <pipelineId>201</pipelineId>
        <agent-items>
          <controllerBurstPPS>0</controllerBurstPPS>
          <packetInPPS>0</packetInPPS>
        </agent-items>
      </Inst-list>
    </pipeline-items>
</openflow-items>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

openflow switch 1 pipeline 201 no rate-limit


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
topSystem sys
openflowEntity sys/openflow
openflowInst sys/openflow/pipeline-{pipelineId}
openflowAgent sys/openflow/pipeline-{pipelineId}/agent


openflowEntity Properties

The following table contains information about the openflowEntity properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
ofAdminStnw:AdminSt
(scalar:Enum8)
OpenFlow Admin StateSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled


openflowInst Properties

The following table contains information about the openflowInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
pipelineIdscalar:Uint16
Openflow Forwarding pipeline-id
RANGE: [1 , 65535]


openflowAgent Properties

The following table contains information about the openflowAgent properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
controllerBurstPPSscalar:Uint16
Openflow Channel Packets to Controller In PPS
RANGE: [0 , 65535]
DEFAULT: 0
packetInPPSscalar:Uint16
Openflow Channel Packets In Rate in PPS
RANGE: [0 , 65535]
DEFAULT: 0


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html