Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

MAC match support in PicOS OVS. 

dl_dstdl_srcdl_vlandl_vlan_pcpvlan_vidvlan_tci
dl_dst/maskdl_src/mask   vlan_tci/mask

MAC action fields support in PicOS OVS. 

set_field:*-\>eth_dstset_field:*-\>eth_srcset_field:*-\>vlan_vidset_field:*-\>vlan_pcp

 

IPv4 match support in PicOS OVS:

dl_type=0x0800nw_srcnw_dstnw_tosnw_ecnnw_protocol
 nw_src/masknw_dst/mask   

IPv4 flow actions fields:

set_field:*-\>nw_srcset_field:*-\>nw_dst

 

L4 port match support in PicOS OVS:

tcp_src

tcp_dstudp_srcudp_dstsctp_srcsctp_dst

tcp_src/mask

tcp_dst/maskudp_src/maskudp_dst/masksctp_src/masksctp_dst/mask

L4 port match support in PicOS OVS:

set_field:*-\>tcp_srcset_field:*-\>tcp_dstset_field:*-\>udp_srcset_field:*-\>udp_dst

 

 



Creating an IPv4 flow

root@PicOS-OVS# ovs-ofctl add-flow br0 dl_src=22:11:11:11:11:11,dl_dst=22:00:00:00:00:00,in_port=1,dl_type=0x0800,nw_src=128.1.1.1,nw_dst=128.1.1.2,nw_proto=6,actions=output:2,3,4
root@PicOS-OVS#
root@PicOS-OVS# ovs-ofctl dump-flows br0
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=12.758s, table=0, n_packets=0, n_bytes=0, tcp,in_port=1,dl_src=22:11:11:11:11:11,dl_dst=22:00:00:00:00:00,nw_src=128.1.1.1,nw_dst=128.1.1.2 actions=output:2,output:3,output:4
cookie=0x0, duration=2180.111s, table=0, n_packets=0, n_bytes=0, priority=0 actions=NORMAL
root@PicOS-OVS# 

 

Deleting an IPv4 flow

root@PicOS-OVS# ovs-ofctl del-flows br0 dl_src=22:11:11:11:11:11,dl_dst=22:00:00:00:00:00,in_port=1,dl_type=0x0800,nw_src=128.1.1.1,nw_dst=128.1.1.2,nw_proto=6
root@PicOS-OVS# 


Removing all flows

root@PicOS-OVS# ovs-ofctl del-flows br0
root@XorPlus 


  • No labels