Skip to content

Instantly share code, notes, and snippets.

Created August 22, 2016 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0afeac5b75a0ef6bf015d6868a12a3cd to your computer and use it in GitHub Desktop.
Save anonymous/0afeac5b75a0ef6bf015d6868a12a3cd to your computer and use it in GitHub Desktop.
vagrant@central:~/ovs$ cd ./utilities && rm -rf ./sandbox && ./ovs-sim
______________________________________________________________________
|
| You are running in a nested shell environment meant for Open vSwitch
| and OVN testing in simulation. The OVS manpages are available via
| "man". Please see ovs-sim(1) for more information.
|
| Exit the shell to kill the running daemons and leave the simulation
| environment.
|main: vagrant@central:~/ovs/utilities/sandbox$ . /vagrant/testDpCleanup.txt
===
OVS show (cropped)
7e048b55-f320-4ca3-b834-a04fd26eed08
Bridge br-int
Port br-int
Bridge br-phys
Port "br-phys_n1"
Port br-phys
===
OF flows
OFPST_FLOW reply (OF1.3) (xid=0x2):
table=32, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,33)
table=34, n_packets=0, n_bytes=0, priority=0 actions=set_field:0->reg0,set_field:0->reg1,set_field:0->reg2,set_field:0->reg3,set_field:0->reg4,set_field:0->reg5,set_field:0->reg6,set_field:0->reg7,set_field:0->reg8,set_field:0->reg9,resubmit(,48)
table=64, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,65)
===
ovn port binds
_uuid,chassis,datapath,logical_port,mac,options,parent_port,tag,tunnel_key,type
===
ovn datapaths and dp binding
---
===
ovn logical flows
===
===
OVS show (cropped)
7e048b55-f320-4ca3-b834-a04fd26eed08
Bridge br-int
Port "hv1-vif1"
Port br-int
Bridge br-phys
Port "br-phys_n1"
Port br-phys
===
OF flows
OFPST_FLOW reply (OF1.3) (xid=0x2):
table=32, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,33)
table=34, n_packets=0, n_bytes=0, priority=0 actions=set_field:0->reg0,set_field:0->reg1,set_field:0->reg2,set_field:0->reg3,set_field:0->reg4,set_field:0->reg5,set_field:0->reg6,set_field:0->reg7,set_field:0->reg8,set_field:0->reg9,resubmit(,48)
table=64, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,65)
===
ovn port binds
_uuid,chassis,datapath,logical_port,mac,options,parent_port,tag,tunnel_key,type
===
ovn datapaths and dp binding
---
===
ovn logical flows
===
===
OVS show (cropped)
7e048b55-f320-4ca3-b834-a04fd26eed08
Bridge br-int
Port "hv1-vif1"
Port br-int
Bridge br-phys
Port "br-phys_n1"
Port br-phys
===
OF flows
OFPST_FLOW reply (OF1.3) (xid=0x2):
table=0, n_packets=0, n_bytes=0, priority=100,in_port=1 actions=set_field:0x1->metadata,set_field:0x1->reg14,resubmit(,16)
table=16, n_packets=0, n_bytes=0, priority=100,metadata=0x1,dl_src=01:00:00:00:00:00/01:00:00:00:00:00 actions=drop
table=16, n_packets=0, n_bytes=0, priority=100,metadata=0x1,vlan_tci=0x1000/0x1000 actions=drop
table=16, n_packets=0, n_bytes=0, priority=50,reg14=0x1,metadata=0x1 actions=resubmit(,17)
table=17, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,18)
table=18, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,19)
table=19, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,20)
table=20, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,21)
table=21, n_packets=0, n_bytes=0, priority=100,ipv6,reg0=0x1/0x1,metadata=0x1 actions=ct(table=22,zone=NXM_NX_REG13[0..15])
table=21, n_packets=0, n_bytes=0, priority=100,ip,reg0=0x1/0x1,metadata=0x1 actions=ct(table=22,zone=NXM_NX_REG13[0..15])
table=21, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,22)
table=22, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,23)
table=23, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,24)
table=24, n_packets=0, n_bytes=0, priority=100,ip,reg0=0x2/0x2,metadata=0x1 actions=ct(commit,zone=NXM_NX_REG13[0..15],exec(load:0->NXM_NX_CT_LABEL[0])),resubmit(,25)
table=24, n_packets=0, n_bytes=0, priority=100,ipv6,reg0=0x2/0x2,metadata=0x1 actions=ct(commit,zone=NXM_NX_REG13[0..15],exec(load:0->NXM_NX_CT_LABEL[0])),resubmit(,25)
table=24, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,25)
table=25, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,26)
table=26, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,27)
table=27, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,28)
table=28, n_packets=0, n_bytes=0, priority=100,metadata=0x1,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=set_field:0xffff->reg15,resubmit(,32)
table=32, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,33)
table=33, n_packets=0, n_bytes=0, priority=100,reg15=0xffff,metadata=0x1 actions=set_field:0x1->reg15,resubmit(,34),set_field:0xffff->reg15
table=33, n_packets=0, n_bytes=0, priority=100,reg15=0x1,metadata=0x1 actions=resubmit(,34)
table=34, n_packets=0, n_bytes=0, priority=100,reg10=0/0x1,reg14=0x1,reg15=0x1,metadata=0x1 actions=drop
table=34, n_packets=0, n_bytes=0, priority=0 actions=set_field:0->reg0,set_field:0->reg1,set_field:0->reg2,set_field:0->reg3,set_field:0->reg4,set_field:0->reg5,set_field:0->reg6,set_field:0->reg7,set_field:0->reg8,set_field:0->reg9,resubmit(,48)
table=48, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,49)
table=49, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,50)
table=50, n_packets=0, n_bytes=0, priority=100,ip,reg0=0x1/0x1,metadata=0x1 actions=ct(table=51,zone=NXM_NX_REG13[0..15])
table=50, n_packets=0, n_bytes=0, priority=100,ipv6,reg0=0x1/0x1,metadata=0x1 actions=ct(table=51,zone=NXM_NX_REG13[0..15])
table=50, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,51)
table=51, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,52)
table=52, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,53)
table=53, n_packets=0, n_bytes=0, priority=100,ipv6,reg0=0x2/0x2,metadata=0x1 actions=ct(commit,zone=NXM_NX_REG13[0..15],exec(load:0->NXM_NX_CT_LABEL[0])),resubmit(,54)
table=53, n_packets=0, n_bytes=0, priority=100,ip,reg0=0x2/0x2,metadata=0x1 actions=ct(commit,zone=NXM_NX_REG13[0..15],exec(load:0->NXM_NX_CT_LABEL[0])),resubmit(,54)
table=53, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,54)
table=54, n_packets=0, n_bytes=0, priority=0,metadata=0x1 actions=resubmit(,55)
table=55, n_packets=0, n_bytes=0, priority=100,metadata=0x1,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=resubmit(,64)
table=55, n_packets=0, n_bytes=0, priority=50,reg15=0x1,metadata=0x1 actions=resubmit(,64)
table=64, n_packets=0, n_bytes=0, priority=100,reg10=0x1/0x1,reg15=0x1,metadata=0x1 actions=push:NXM_OF_IN_PORT[],set_field:0->in_port,resubmit(,65),pop:NXM_OF_IN_PORT[]
table=64, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,65)
table=65, n_packets=0, n_bytes=0, priority=100,reg15=0x1,metadata=0x1 actions=output:1
===
ovn port binds
_uuid,chassis,datapath,logical_port,mac,options,parent_port,tag,tunnel_key,type
ac79c873-1c74-4fb7-b772-4feb30a7e927,d6fe9522-f071-4f96-88ab-a1d84fbb0dd8,b95aa805-c2e3-4c3d-9f8f-2eb0efc91e81,foo,,,,,1,
===
ovn datapaths and dp binding
_uuid : b95aa805-c2e3-4c3d-9f8f-2eb0efc91e81
external_ids : {logical-switch="e7667377-9b91-48ff-b31f-ceec49b114ad"}
tunnel_key : 1
---
_uuid : b95aa805-c2e3-4c3d-9f8f-2eb0efc91e81
external_ids : {logical-switch="e7667377-9b91-48ff-b31f-ceec49b114ad"}
tunnel_key : 1
===
ovn logical flows
Datapath: b95aa805-c2e3-4c3d-9f8f-2eb0efc91e81 Pipeline: ingress
table=0 (ls_in_port_sec_l2 ), priority=100 , match=(eth.src[40]), action=(drop;)
table=0 (ls_in_port_sec_l2 ), priority=100 , match=(vlan.present), action=(drop;)
table=0 (ls_in_port_sec_l2 ), priority=50 , match=(inport == "foo"), action=(next;)
table=1 (ls_in_port_sec_ip ), priority=0 , match=(1), action=(next;)
table=2 (ls_in_port_sec_nd ), priority=0 , match=(1), action=(next;)
table=3 (ls_in_pre_acl ), priority=0 , match=(1), action=(next;)
table=4 (ls_in_pre_lb ), priority=0 , match=(1), action=(next;)
table=5 (ls_in_pre_stateful ), priority=100 , match=(reg0[0] == 1), action=(ct_next;)
table=5 (ls_in_pre_stateful ), priority=0 , match=(1), action=(next;)
table=6 (ls_in_acl ), priority=0 , match=(1), action=(next;)
table=7 (ls_in_lb ), priority=0 , match=(1), action=(next;)
table=8 (ls_in_stateful ), priority=100 , match=(reg0[1] == 1), action=(ct_commit(ct_label=0/1); next;)
table=8 (ls_in_stateful ), priority=100 , match=(reg0[2] == 1), action=(ct_lb;)
table=8 (ls_in_stateful ), priority=0 , match=(1), action=(next;)
table=9 (ls_in_arp_rsp ), priority=0 , match=(1), action=(next;)
table=10(ls_in_dhcp_options ), priority=0 , match=(1), action=(next;)
table=11(ls_in_dhcp_response), priority=0 , match=(1), action=(next;)
table=12(ls_in_l2_lkup ), priority=100 , match=(eth.mcast), action=(outport = "_MC_flood"; output;)
Datapath: b95aa805-c2e3-4c3d-9f8f-2eb0efc91e81 Pipeline: egress
table=0 (ls_out_pre_lb ), priority=0 , match=(1), action=(next;)
table=1 (ls_out_pre_acl ), priority=0 , match=(1), action=(next;)
table=2 (ls_out_pre_stateful), priority=100 , match=(reg0[0] == 1), action=(ct_next;)
table=2 (ls_out_pre_stateful), priority=0 , match=(1), action=(next;)
table=3 (ls_out_lb ), priority=0 , match=(1), action=(next;)
table=4 (ls_out_acl ), priority=0 , match=(1), action=(next;)
table=5 (ls_out_stateful ), priority=100 , match=(reg0[1] == 1), action=(ct_commit(ct_label=0/1); next;)
table=5 (ls_out_stateful ), priority=100 , match=(reg0[2] == 1), action=(ct_lb;)
table=5 (ls_out_stateful ), priority=0 , match=(1), action=(next;)
table=6 (ls_out_port_sec_ip ), priority=0 , match=(1), action=(next;)
table=7 (ls_out_port_sec_l2 ), priority=100 , match=(eth.mcast), action=(output;)
table=7 (ls_out_port_sec_l2 ), priority=50 , match=(outport == "foo"), action=(output;)
===
===
OVS show (cropped)
7e048b55-f320-4ca3-b834-a04fd26eed08
Bridge br-int
Port br-int
Bridge br-phys
Port "br-phys_n1"
Port br-phys
===
OF flows
OFPST_FLOW reply (OF1.3) (xid=0x2):
table=32, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,33)
table=34, n_packets=0, n_bytes=0, priority=0 actions=set_field:0->reg0,set_field:0->reg1,set_field:0->reg2,set_field:0->reg3,set_field:0->reg4,set_field:0->reg5,set_field:0->reg6,set_field:0->reg7,set_field:0->reg8,set_field:0->reg9,resubmit(,48)
table=64, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,65)
===
ovn port binds
_uuid,chassis,datapath,logical_port,mac,options,parent_port,tag,tunnel_key,type
===
ovn datapaths and dp binding
---
===
ovn logical flows
===
|hv1: vagrant@central:~/ovs/utilities/sandbox$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment