Configuring option-match-vlan-type
PicOS supports enable/disable option-match-mode-type from version 2.6.5 in Platform P-3922/3924. This function is used to enable or disable matching untagged packets.
Example:
admin@PicOS-OVS$ovs-vsctl set-option-match-vlan-type TRUE Please reboot for the change to take effect! admin@PicOS-OVS$ admin@PicOS-OVS$ovs-vsctl set-option-match-vlan-type FALSE Please reboot for the change to take effect! admin@PicOS-OVS$
If the type is false, PicOS cannot configure one flow entry only matching untagged packets, and cannot configure one flow entry match all tagged packets (tag from1 to 4094). Once option-match-vlan-type is enabled, the flow entry vlan_tci=0x0000/0x1000 can match untagged packets, and flow entry vlan_tci=0x1000/0x1000 can match all tagged packets.
Example:
admin@PicOS-OVS$ovs-vsctl set-option-match-vlan-type TRUE Please reboot for the change to take effect! admin@PicOS-OVS$ admin@PicOS-OVS$ovs-ofctl add-flow br0 in_port=11,vlan_tci=0x0000/0x1000,actions=output:12 admin@PicOS-OVS$ovs-ofctl add-flow br0 in_port=12,vlan_tci=0x1000/0x1000,actions=output:11
Send untagged packets to port te-1/1/11, the packets can match the first flow entry and forward on port te-1/1/12. Send tagged packets to port te-1/1/11, the packets cannot match the first flow entry;
Send untagged packets to port te-1/1/12, the packets cannot match the second flow entry; Send tagged (1~4094) packets to port te-1/1/12, the packets can match the second flow entry and forward on port te-1/1/12.
Copyright © 2024 Pica8 Inc. All Rights Reserved.