OpenFlow probe commands -- debugging system internal openflow

Use debugging system internal openflow to enable OpenFlow debugging.

Use undo debugging system internal openflow to disable OpenFlow debugging.

Syntax

debugging system internal openflow [ level level ]

undo debugging system internal openflow [ level level ]

Default

OpenFlow debugging is disabled.

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Parameters

level level: Specifies the level of OpenFlow debugging, in the range of 1 to 3. If you do not specify this option, the command enables OpenFlow debugging of all levels.

OpenFlow probe commands -- display system internal openflow acl-reserve

Use display system internal openflow acl-reserve to display ACL resources reserved for OpenFlow.

Syntax

display system internal openflow acl-reserve

Views

Probe view

Predefined user roles

network-admin

mdc-admin

OpenFlow probe commands -- display system internal openflow cache

Use display system internal openflow cache to display OpenFlow fast forwarding table information.

Syntax

Centralized devices:

display system internal openflow instance instance-id cache

Distributed devices in standalone mode:Centralized IRF devices:

display system internal openflow instance instance-id cache slot slot-number

Distributed devices in IRF mode:

display system internal openflow instance instance-id cache chassis chassis-number slot slot-number

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Parameters

instance-id: Specifies an OpenFlow instance by its ID in the range of 1 to 4094.

slot slot-number: Specifies a card by its slot number. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. (Centralized IRF devices.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. (Distributed devices in IRF mode.)

OpenFlow probe commands -- display system internal openflow instance

Use display system internal openflow instance to display instance and flow table information.

Syntax

display system internal openflow instance { inner | inner-redirect } [ flow-table [ table-id ] | group [ group-id ] ]

display system internal openflow instance { forward-instance | lawful-intercept } [ flow-table [ table-id ] ]

display system internal openflow instance qos-instance [ flow-table [ table-id ] | meter [ meter-id ] ]

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Parameters

inner: Specifies the inner instance 4096.

inner-redirect: Specifies the inner instance 4097.

forward-instance: Specifies the inner instance 4101.

lawful-intercept: Specifies the inner instance 4099.

qos-instance: Specifies the inner instance 4100.

flow-table [ table-id ]: Specifies a flow table by its ID in the range of 0 to 254. If you do not specify a flow table, this command displays information for all flow tables.

group [ group-id ]: Specifies a group by its ID in the range of 0 to 4294967040. If you do not specify a group, this command displays information for all groups.

meter [ meter-id ]: Specifies a meter by its ID in the range of 1 to 4294901760.

OpenFlow probe commands -- openflow open-test

Use openflow open-test to enable the OpenFlow open-test feature.

Use undo openflow open-test to disable the OpenFlow open-test feature.

Syntax

openflow open-test

undo openflow open-test

Default

The OpenFlow open-test feature is disabled.

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Examples

# Enable the OpenFlow open-test feature.

<Sysname> system-view

[Sysname] probe

[Sysname-probe] openflow open-test

OpenFlow probe commands -- openflow open-test output inport

Use openflow open-test output inport to set the packets' output port index.

Use undo openflow open-test output inport to restore the default.

Syntax

openflow open-test output inport inport-value

undo openflow open-test output inport

Default

The packets' output port index is not set.

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Parameters

inport-value: Specifies the output port index in the range of 0 to 4294967295.

Usage guidelines

This command is applicable to the situation where the output port in the Apply-Actions instruction is a reserved port of the In port type.

To execute this command, you must enable the OpenFlow open-test feature first.

Examples

# Set the packets' output port index to 1.

<Sysname> system-view

[Sysname] probe

[Sysname-probe] openflow open-test output inport 1

OpenFlow probe commands -- openflow open-test reduce-idletime

Use openflow open-test reduce-idletime to shorten the idle timeout time by the specified period.

Use undo openflow open-test reduce-idletime to restore the default.

Syntax

openflow open-test reduce-idletime idletime-value

undo openflow open-test reduce-idletime

Default

The idle timeout time is not shortened.

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Parameters

idletime-value: Specifies the period by which the idle timeout time is shorted. The value range for this argument is 0 to 5 in 100 milliseconds.

Usage guidelines

To execute this command, you must enable the OpenFlow open-test feature first.

Examples

# Shorten the idle timeout time by 100 milliseconds.

<Sysname> system-view

[Sysname] probe

[Sysname-probe] openflow open-test reduce-idletime 1

OpenFlow probe commands -- openflow open-test reduce-hardtime

Use openflow open-test reduce-hardtime to shorten the hard timeout time by the specified period.

Use undo openflow open-test reduce-hardtime to restore the default.

Syntax

openflow open-test reduce-hardtime hardtime-value

undo openflow open-test reduce-hardtime

Default

The hard timeout time is not shortened.

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Parameters

hardtime-value: Specifies the period by which the hard timeout time is shorted. The value range for this argument is 0 to 5 in 100 milliseconds.

Usage guidelines

To execute this command, you must enable the OpenFlow open-test feature first.

Examples

# Shorten the hard timeout time by 100 milliseconds.

<Sysname> system-view

[Sysname] probe

[Sysname-probe] openflow open-test reduce-hardtime 1

OpenFlow probe commands -- openflow open-test packet-soft-forward

Use openflow open-test packet-soft-forward to deliver packets to the CPU for processing.

Use undo openflow open-test packet-soft-forward to restore the default.

Syntax

openflow open-test packet-soft-forward

undo openflow open-test packet-soft-forward

Default

Packets are not delivered to the CPU for processing.

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

To execute this command, you must enable the OpenFlow open-test feature first.

Examples

# Deliver packets to the CPU for processing.

<Sysname> system-view

[Sysname] probe

[Sysname-probe] openflow open-test packet-soft-forward

OpenFlow probe commands -- reset system internal openflow cache

Use reset system internal openflow cache to clear OpenFlow fast forwarding table information.

Syntax

reset system internal openflow cache instance { instance-id | all }

Views

Probe view

Predefined user roles

network-admin

mdc-admin

Parameters

instance-id: Specifies an OpenFlow instance by its ID in the range of 1 to 4094.

all: Specifies all OpenFlow instances.