0)設定某個port進來的封包帶dscp=48

lsp=798db035-5e79-4902-94a0-9bd2c51258a3

lsw=957de943-c1fd-49e4-8111-2c54e309035f

qos_id=$(ovn-nbctl --wait=hv -- --id=@lp1-qos create QoS priority=100 action=dscp=48 match="inport\=\=\"${lsp}\"" direction="from-lport" -- set Logical_Switch ${lsw} qos_rules=@lp1-qos)

1)移除相關lsw上的qos rule
# ovn-nbctl --wait=hv clear Logical_Switch ${lsw} qos_rules

2) br-int上會看到的rule
ovs-ofctl dump br-int
cookie=0xf828d36a, duration=106.146s, table=23, n_packets=0, n_bytes=0, idle_age=106, priority=100,ipv6,reg14=0x2,metadata=0x1 actions=load:0x30->OXM_OF_IP_DSCP[],resubmit(,24)
cookie=0xf828d36a, duration=106.145s, table=23, n_packets=0, n_bytes=0, idle_age=106, priority=100,ip,reg14=0x2,metadata=0x1 actions=load:0x30->OXM_OF_IP_DSCP[],resubmit(,24)

3) ovn-sb上會看到的logical rule
ovn-sbctl dump-flows
table=7 (ls_in_qos_mark ), priority=100 , match=(inport=="bf3854e1-a97f-4a57-8537-ae5e491effa8"), action=(ip.dscp = 48; next;)

4) ovs-db裡面會看到的資訊
ovsdb-client dump -f list $OVN_SB_DB

_uuid : 1e923380-8bb4-466e-b0da-d35f8e609401
actions : "ip.dscp = 48; next;"
external_ids : {source="ovn-northd.c:2767", stage-name=ls_in_qos_mark}
logical_datapath : f491f5f7-02d1-4d19-affa-a4c8e0aeafc2
match : "inport==\"bf3854e1-a97f-4a57-8537-ae5e491effa8\""
pipeline : ingress
priority : 100
table_id : 7

results matching ""

    No results matching ""