Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ovs-vsctl show
1b4a5572-a524-46f8-a2cc-6d0a3c0d2db7
Bridge br-tun
fail_mode: secure
Port br-tun
Interface br-tun
type: internal
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Bridge br-int
fail_mode: secure
Port "qvodb040208-7c"
tag: 1
Interface "qvodb040208-7c"
Port br-int
Interface br-int
type: internal
Port "qr-ff3a8516-9e"
tag: 1
Interface "qr-ff3a8516-9e"
type: internal
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Port "tap5e59cde4-2c"
tag: 1
Interface "tap5e59cde4-2c"
type: internal
Bridge br-ex
Port "qg-06de8ae1-bb"
Interface "qg-06de8ae1-bb"
type: internal
Port br-ex
Interface br-ex
type: internal
ovs_version: "2.0.2"
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ovs-vsctl list Bridge | less
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ovs-vsctl list Port | less
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ovs-vsctl list Interface | less
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ovs-vsctl list-br
br-ex
br-int
br-tun
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ovs-vsctl list-ports br-int
patch-tun
qr-ff3a8516-9e
qvodb040208-7c
tap5e59cde4-2c
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ovs-vsctl list-ports br-tun
patch-int
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ovs-vsctl list-ports br-ex
qg-06de8ae1-bb
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ brctl show
bridge name bridge id STP enabled interfaces
qbrdb040208-7c 8000.66cd2f1dcfaa no qvbdb040208-7c
tapdb040208-7c
virbr0 8000.000000000000 yes
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ovs-ofctl show br-int
OFPT_FEATURES_REPLY (xid=0x2): dpid:0000b6ac5227404a
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
1(patch-tun): addr:7e:b7:a4:57:d8:8c
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
2(tap5e59cde4-2c): addr:00:00:00:00:00:00
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
3(qr-ff3a8516-9e): addr:00:00:00:00:00:00
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
4(qvodb040208-7c): addr:82:4d:22:92:0b:14
config: 0
state: 0
current: 10GB-FD COPPER
speed: 10000 Mbps now, 0 Mbps max
LOCAL(br-int): addr:b6:ac:52:27:40:4a
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ovs-ofctl dump-ports br-int
OFPST_PORT reply (xid=0x2): 5 ports
port 3: rx pkts=118, bytes=17725, drop=0, errs=0, frame=0, over=0, crc=0
tx pkts=94, bytes=12026, drop=0, errs=0, coll=0
port 1: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0
tx pkts=46, bytes=4100, drop=0, errs=0, coll=0
port 4: rx pkts=108, bytes=13406, drop=0, errs=0, frame=0, over=0, crc=0
tx pkts=119, bytes=18567, drop=0, errs=0, coll=0
port 2: rx pkts=22, bytes=2532, drop=0, errs=0, frame=0, over=0, crc=0
tx pkts=34, bytes=3344, drop=0, errs=0, coll=0
port LOCAL: rx pkts=8, bytes=648, drop=0, errs=0, frame=0, over=0, crc=0
tx pkts=46, bytes=4100, drop=0, errs=0, coll=0
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ovs-ofctl show br-tun
OFPT_FEATURES_REPLY (xid=0x2): dpid:00006a754511a648
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
1(patch-int): addr:be:37:bb:e0:fb:47
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
LOCAL(br-tun): addr:5a:c5:ce:3e:79:4e
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ovs-ofctl dump-ports br-tun
OFPST_PORT reply (xid=0x2): 2 ports
port 1: rx pkts=46, bytes=4100, drop=0, errs=0, frame=0, over=0, crc=0
tx pkts=0, bytes=0, drop=0, errs=0, coll=0
port LOCAL: rx pkts=8, bytes=648, drop=0, errs=0, frame=0, over=0, crc=0
tx pkts=0, bytes=0, drop=0, errs=0, coll=0
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ovs-ofctl show br-ex
OFPT_FEATURES_REPLY (xid=0x2): dpid:00001aedcfb12346
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
1(qg-06de8ae1-bb): addr:00:00:00:00:00:00
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
LOCAL(br-ex): addr:1a:ed:cf:b1:23:46
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ovs-ofctl dump-ports br-ex
OFPST_PORT reply (xid=0x2): 2 ports
port 1: rx pkts=108, bytes=12626, drop=0, errs=0, frame=0, over=0, crc=0
tx pkts=107, bytes=16795, drop=0, errs=0, coll=0
port LOCAL: rx pkts=115, bytes=17443, drop=0, errs=0, frame=0, over=0, crc=0
tx pkts=108, bytes=12626, drop=0, errs=0, coll=0
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ovs-vsctl get Interface qr-ff3a8516-9e statistics
{collisions=0, rx_bytes=17725, rx_crc_err=0, rx_dropped=0, rx_errors=0, rx_frame_err=0, rx_over_err=0, rx_packets=118, tx_bytes=12026, tx_dropped=0, tx_errors=0, tx_packets=94}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment