Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show openflow flows

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show openflow flows
<brief | detail | summary>
<flow-id>
<switch switch-name>

Description

Display information about traffic flows that match filters on OpenFlow interfaces.

Options

none

(Same as brief) Display information for all flows.

brief | detail | summary

(Optional) Display the specified level of output.

flow-id

(Optional) Display information only for the specified flow.

switch switch-name

(Optional) Display information only for the flows on the specified OpenFlow virtual switch.

Required Privilege Level

admin

Output Fields

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

Table 1: show openflow flows Output Fields

Field Name

Field Description

Switch Name

User-configured identifier for the OpenFlow virtual switch on which the flow resides.

Number of flows

Number of active flow entries associated with that OpenFlow virtual switch.

Flow name

Flow descriptor.

Table ID

Identifier for the flow table from which the flow originated.

Flow ID

Flow identifier associated with that flow entry.

Number of packets

Number of packets that have matched the flow entry.

Priority

Flow entry priority. Packets match higher priority entries before matching lower priority entries.

Idle timeout

Number of seconds after which the flow entry is removed from the flow table provided there are no matching packets.

Hard timeout

Number of seconds after which the flow entry is removed from the flow table regardless of the number of matching packets.

Cookie

An identifier specified by the OpenFlow controller when the flow is installed in the flow table. Cookies are used to filter flows for flow modification and delete operations.

Note:

This field appears only if the device running Junos OS supports OpenFlow version 1.3.1 or later.

Match

Configured match conditions against which the incoming packet is compared.

Note:

In the OpenFlow 1.3.1 sample output, the match fields that are populated for an IPv6 flow apply to MX Series routers only.

Action

Set of actions (for OpenFlow v1.0) or flow instructions (for OpenFlow v1.3.1) applied to a packet when it matches the flow entry.

Number of match

Number of match conditions against which the incoming packet is compared.

Number of action

Number of actions (for OpenFlow v1.0) or flow instructions (for OpenFlow v1.3.1) that are applied to a packet when it matches the flow entry.

Sample Output

show openflow flows switch brief

content_copy zoom_out_map
user@host> show openflow flows switch OFswitch1 brief

Switch                 Flow    Number of packets    Priority Number of Number of
Name                   ID                                    match    action
OFswitch1              16842752 8075372509          32768    1         1

show openflow flows switch detail

content_copy zoom_out_map
user@host> show openflow flows switch OFswitch1 detail
Flow name: flow-16842752
Table ID: 1     Flow ID: 16842752
Priority: 32768   Idle timeout(in sec):0        Hard timeout(in sec): 0
Cookie: 0
Match: Input port: 45549
       Ethernet src addr: wildcard
       Ethernet dst addr: wildcard
       Input vlan id: wildcard          Input VLAN priority: wildcard
       Ether type: wildcard
       IP ToS: wildcard                 IP protocol: wildcard
       IP src addr: wildcard            IP dst addr: wildcard
       Source port: wildcard            Destination port: wildcard
Action: Output port 41350,

show openflow flows switch detail (OpenFlow 1.3.1, IPv6 Flow)

content_copy zoom_out_map
user@host> show openflow flows switch OFswitch1 detail
Flow name: flow-67174400
Table ID: 1     Flow ID: 67174400
Priority: 8       Idle timeout(in sec):1800     Hard timeout(in sec): 1800
Cookie: 3333
Match: Input port: 2
       Ethernet src addr: aa:bb:cc:11:22:33
       Ethernet dst addr: aa:bb:cc:11:22:34
       Input vlan id: 50                Input VLAN priority: 3
       Ether type: 0x86dd
       IP ToS: 0x2                      IP protocol: 0x6
       IPv4 src addr: NA
       IPv4 dst addr: NA
       IPv6 src addr: 2001::/64
       IPv6 dst addr: 1001::1/128
       Source port: 8                   Destination port: 9
Action: Set_Field[VLAN_ID] 601, Output port 4, Set_Field[VLAN_ID] 701, Output port 6,

show openflow flows switch summary

content_copy zoom_out_map
user@host> show openflow flows switch OFswitch1 summary

Switch Name                                                      Number of Flows
OFswitch1                                                        1

show openflow flows brief (Specific Flow)

content_copy zoom_out_map
user@host> show openflow flows 16842752 brief

Switch                 Flow    Number of packets    Priority Number of Number of
Name                   ID                                    match    action
OFswitch1              16842752 8056139439          32768    1         1

show openflow flows detail (Specific Flow)

content_copy zoom_out_map
user@host> show openflow flows 16842752 detail
Flow name: flow-16842752
Table ID: 1     Flow ID: 16842752
Priority: 32768   Idle timeout(in sec):0        Hard timeout(in sec): 0
Cookie: 0
Match: Input port: 45549
       Ethernet src addr: wildcard
       Ethernet dst addr: wildcard
       Input vlan id: wildcard          Input VLAN priority: wildcard
       Ether type: wildcard
       IP ToS: wildcard                 IP protocol: wildcard
       IP src addr: wildcard            IP dst addr: wildcard
       Source port: wildcard            Destination port: wildcard
Action: Output port 41350,

show openflow flows detail (Specific Flow, OpenFlow 1.3.1, IPv6 Flow)

content_copy zoom_out_map
user@host> show openflow flows 67174400 detail
Flow name: flow-67174400
Table ID: 1     Flow ID: 67174400
Priority: 8       Idle timeout(in sec):1800     Hard timeout(in sec): 1800
Cookie: 3333
Match: Input port: 2
       Ethernet src addr: aa:bb:cc:11:22:33
       Ethernet dst addr: aa:bb:cc:11:22:34
       Input vlan id: 50                Input VLAN priority: 3
       Ether type: 0x86dd
       IP ToS: 0x2                      IP protocol: 0x6
       IPv4 src addr: NA
       IPv4 dst addr: NA
       IPv6 src addr: 2001::/64
       IPv6 dst addr: 1001::1/128
       Source port: 8                   Destination port: 9
Action: Set_Field[VLAN_ID] 601, Output port 4, Set_Field[VLAN_ID] 701, Output port 6,

show openflow flows detail (Specific Flow, OpenFlow 1.3.1, Destination MAC Address Rewrite Action)

content_copy zoom_out_map
user@host> show openflow flows 16842752 detail

Flow name: flow-16842752
Table ID: 1     Flow ID: 16842752
Priority: 1       Idle timeout(in sec):0        Hard timeout(in sec): 0
Cookie: 3333
Match: Input port: 1
       Ethernet src addr: wildcard
       Ethernet dst addr: wildcard
       Input vlan id: wildcard          Input VLAN priority: wildcard
       Ether type: wildcard
       IP ToS: wildcard                 IP protocol: wildcard
       IPv4 src addr: wildcard
       IPv4 dst addr: wildcard
       IPv6 src addr: wildcard
       IPv6 dst addr: wildcard
       Source port: wildcard            Destination port: wildcard
Action: Dst MAC ab:cd:ef:12:34:56, Output port 2,

show openflow flows summary (Specific Flow)

content_copy zoom_out_map
user@host> show openflow flows 16842752 summary
Flow name: flow-16842752
Number of packets: 8066495711

Release Information

Command introduced in Junos OS Release 13.3.

footer-navigation