Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

show openflow filters

Syntax

show openflow filters<interface interface-name><switch switch-name>

Release Information

Command introduced in Junos OS Release 13.3.

Description

Display information for filters bound to OpenFlow interfaces.

Options

none

Display information for all filters that are bound to OpenFlow interfaces.

interface interface-name

(Optional) Display information for the filter bound to the specified OpenFlow interface. The interface name must include the logical unit number.

switch switch-name

(Optional) Display information for filters bound to the interfaces configured under the specified OpenFlow virtual switch.

Required Privilege Level

admin

List of Sample Output

show openflow filters
show openflow filters interface
show openflow filters switch

Output Fields

Table 1 lists the output fields for the show openflow filters command. Output fields are listed in the approximate order in which they appear.

Table 1: show openflow filters Output Fields

Field Name

Field Description

Switch Name

User-configured identifier for the OpenFlow virtual switch associated with the interface to which the filter is bound.

Number of filters

Number of filters bound to OpenFlow interfaces on the virtual switch.

Default action

Default action executed for packets that do not match any existing flow entries. Values are PACKET IN or DROP.

Filter name

Filter identifier consisting of the concatenation of the interface name (including the logical unit number) and an internally assigned switch ID.

Filter index

Autogenerated string that identifies the filter.

Number of terms

Number of terms in the filter. Each term consists of match conditions and actions.

Number of priorities

Number of unique active flow priorities in the filter.

Term name

Filter term identifier, which consists of the filter name (interface name and switch ID), the flow priority, and a sequence number.

Priority ID

Flow entry priority. Higher priority terms are installed above lower priority terms.

Flow ID

Flow identifier associated with that flow entry.

Number of packets

Number of packets that have matched a filter term. A filter term is equivalent to a flow entry.

Number of bytes

Number of bytes that have matched a filter term. A filter term is equivalent to a flow entry.

Sample Output

show openflow filters

user@host> show openflow filters
Switch                  Filter      Number of  Number of  Number of
Name                    Index       terms      priorities packets
OFswitch1               96468992    0          0          0
                        96468993    0          0          0
                        96468994    0          0          0
                        96468995    0          0          0
                        96468996    1          1          7928017621

show openflow filters interface

user@host> show openflow filters interface ge-1/1/7.0
Switch Name: OFswitch1
Filter name: ge-1/1/7.0_0
Filter index: 96468996
Number of terms: 1            Number of priorities: 1

Term name: ge-1/1/7.0_0:32766^OF:1
Priority ID: 32766                       Flow ID:        16842752
Number of packets:7941332819             Number of bytes:476479969140

show openflow filters switch

user@host> show openflow filters switch OFswitch1
Switch Name: OFswitch1
Number of filters: 5            Default action: PACKET IN

Filter name: ge-1/1/0.0_0
Filter index: 96468992
Number of terms: 0            Number of priorities: 0

Filter name: ge-1/1/1.0_0
Filter index: 96468993
Number of terms: 0            Number of priorities: 0

Filter name: ge-1/1/2.0_0
Filter index: 96468994
Number of terms: 0            Number of priorities: 0

Filter name: ge-1/1/3.0_0
Filter index: 96468995
Number of terms: 0            Number of priorities: 0

Filter name: ge-1/1/7.0_0
Filter index: 96468996
Number of terms: 1            Number of priorities: 1
Priority  Flow                   Number of              Number of
ID        ID                     packets                bytes
32768     16842752               7941332819             476479969140

Published: 2014-04-29