show openflow flows
Syntax
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 | 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.
Field Name |
Field Description |
---|---|
|
User-configured identifier for the OpenFlow virtual switch on which the flow resides. |
|
Number of active flow entries associated with that OpenFlow virtual switch. |
|
Flow descriptor. |
|
Identifier for the flow table from which the flow originated. |
|
Flow identifier associated with that flow entry. |
|
Number of packets that have matched the flow entry. |
|
Flow entry priority. Packets match higher priority entries before matching lower priority entries. |
|
Number of seconds after which the flow entry is removed from the flow table provided there are no matching packets. |
|
Number of seconds after which the flow entry is removed from the flow table regardless of the number of matching packets. |
|
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. |
|
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. |
|
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 conditions against which the incoming packet is compared. |
|
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
- show openflow flows switch detail
- show openflow flows switch detail (OpenFlow 1.3.1, IPv6 Flow)
- show openflow flows switch summary
- show openflow flows brief (Specific Flow)
- show openflow flows detail (Specific Flow)
- show openflow flows detail (Specific Flow, OpenFlow 1.3.1, IPv6 Flow)
- show openflow flows detail (Specific Flow, OpenFlow 1.3.1, Destination MAC Address Rewrite Action)
- show openflow flows summary (Specific Flow)
show openflow flows switch brief
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
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)
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
user@host> show openflow flows switch OFswitch1 summary Switch Name Number of Flows OFswitch1 1
show openflow flows brief (Specific Flow)
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)
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)
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)
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)
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.