On Thu, Apr 9, 2020 at 3:57 PM txfh2007 via discuss <[email protected]> wrote: > > Hi all: > I have a question about conntrack action in OVN flow tables. I have found > ct action always combined with zone, so how does the ct zone comes from? Does > it related to some OVN sb db data structures ? > The flow example is as below: > "priority=100,ip,reg0=0x2/0x2,metadata=0x2 > actions=ct(commit,zone=NXM_NX_REG13[0..15],exec(load:0->NXM_NX_CT_LABEL[0])),resubmit(,48)"
ovn-controller assigns a zone id for each logical port it binds and it stores it in the external_ids column of ovs bridge br-int row. And additionally a snat and dnat zone is allocated for each datapath, but used only for router datapath. You can see that by running - "ovs-vsctl list bridge br-int". The registers reg11, reg12 and reg13 are loaded in table=0. For DNAT reg11 is used, for SNAT reg12 is used and reg13 is used for logical ports (natting for load balancer and for acls). Thanks Numan > > Thanks > > Timo > > > _______________________________________________ > discuss mailing list > [email protected] > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss > _______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
