From patchwork Fri Oct 4 20:13:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Sharma X-Patchwork-Id: 1172039 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nutanix.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nutanix.com header.i=@nutanix.com header.b="u3MYU6D2"; dkim-atps=neutral Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46lLhH12G9z9sPJ for ; Sat, 5 Oct 2019 06:14:55 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 03834D09; Fri, 4 Oct 2019 20:13:54 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 8AD97CC7 for ; Fri, 4 Oct 2019 20:13:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mx0a-002c1b01.pphosted.com (mx0a-002c1b01.pphosted.com [148.163.151.68]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id A085B34F for ; Fri, 4 Oct 2019 20:13:52 +0000 (UTC) Received: from pps.filterd (m0127839.ppops.net [127.0.0.1]) by mx0a-002c1b01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x94KAGli020351 for ; Fri, 4 Oct 2019 13:13:52 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nutanix.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=proofpoint20171006; bh=1UbDeDlYKgS5szQlQJ0VBOAz0dhLMy8PNUPsc4XFMx4=; b=u3MYU6D2GoqDczB9Mm3RDoHr4s5RxfIGnkcx0esfVtT617nagEx6aI7iUD6ig02tesfP JbHhn1n+hl6DD6R5TOXo6jYRKlNAVoTkk/eMcCcqj3nh1n3RAoFt3lbzPjBgsE9E67KO ZraP1lazlwSCFmtfu3LoDxHq3GYAI5trtE50KLg/T3FTss/KGNFtPs2eYBtDK3tJRzLK T1A++yUZzcHNpk3kDrmiqkb+HIjjDlMEpMKpFp7zRQpya9aAGbQXp8wr54Q1grBugO0P aJjtxNtco/c87QNdQZkO02XWB1QET5HNpeHc4dVsMgqJr3BVizUQ16Byr7CDQuOa9U0f qw== Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2054.outbound.protection.outlook.com [104.47.36.54]) by mx0a-002c1b01.pphosted.com with ESMTP id 2va6khpjej-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 04 Oct 2019 13:13:52 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NPG2Kz8/a+lXbK7iytTypjd3aQFeZg1JGvZWAKnagoJk9v6f54R3dVO2u5TMx7etxhwOZpK/4JQn9RIpMkV+J8nQeHatVICqMmg09d2bLHS7sHqcgfz2VVahUdNDunChJzKA+uwhX4jAMeuq/T9Yo+i/IWbNX3FQKgNnKdOuz/HgW+3wfniEJmR6rquhbf8eEsb8129TyA8WhV4ryecCdDQDq+Uo+9v9WDe8b/PD2UEJu0/jLM6f4QzmEWtyXo88f8h18AG+Cxtve8R0xkwPZkEfkZUogU5UjqRN2XDfCJ2jFJE8pmpWe+7FSLQGh1YH8rRQT18qEt68g3UYo2XpRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1UbDeDlYKgS5szQlQJ0VBOAz0dhLMy8PNUPsc4XFMx4=; b=NBJR1qddqC6qML8dSyLbK2x2v8SpMRJMGtKsulzVZ+KnE7x2wWiWF3y+LqOLFztTVdM2QJOktTS0+PejXNNRMk65A2ke2FmGfCvMbMt/IBagGg4EH5SbPFc9VDFLwy49Ql41oIOyopzhOcdbtFb8LDKNwW3PKe5RwoYnXSAm929QiZ6ctDPcvbuF/lzkRTh2fW5CVlo2r/04JQIKLo9oN2M8+MXkAQ+BLpZTRtsr2aUlL4NLHun9ktT1fJQoE51sJ01G2SCYLKQJfOfwWrSH3Z6/SaZ2rdVYze9J4G/gAOeS/KV42X71UP/Eh4cHm5UUwqI0E8K0z8hyWRdtfq0SUg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nutanix.com; dmarc=pass action=none header.from=nutanix.com; dkim=pass header.d=nutanix.com; arc=none Received: from SN1PR02MB3901.namprd02.prod.outlook.com (52.132.194.18) by SN1PR02MB3903.namprd02.prod.outlook.com (52.132.198.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.20; Fri, 4 Oct 2019 20:13:50 +0000 Received: from SN1PR02MB3901.namprd02.prod.outlook.com ([fe80::fd4b:9ebb:e59a:f4c2]) by SN1PR02MB3901.namprd02.prod.outlook.com ([fe80::fd4b:9ebb:e59a:f4c2%4]) with mapi id 15.20.2305.023; Fri, 4 Oct 2019 20:13:50 +0000 From: Ankur Sharma To: "ovs-dev@openvswitch.org" Thread-Topic: [PATCH v2 2/2 ovn] OVN: Use ipv4.src and ipv4.dst actions for NAT rules Thread-Index: AQHVevA8o6QxueBvhE6T31i3zpI/Kw== Date: Fri, 4 Oct 2019 20:13:50 +0000 Message-ID: <1570220071-16483-3-git-send-email-ankur.sharma@nutanix.com> References: <1570220071-16483-1-git-send-email-ankur.sharma@nutanix.com> In-Reply-To: <1570220071-16483-1-git-send-email-ankur.sharma@nutanix.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR06CA0056.namprd06.prod.outlook.com (2603:10b6:a03:14b::33) To SN1PR02MB3901.namprd02.prod.outlook.com (2603:10b6:802:24::18) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.8.3.1 x-originating-ip: [192.146.154.98] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1400e480-722d-4ca0-4225-08d749075ef4 x-ms-traffictypediagnostic: SN1PR02MB3903: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-proofpoint-crosstenant: true x-ms-oob-tlc-oobclassifiers: OLM:635; x-forefront-prvs: 018093A9B5 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(136003)(366004)(39860400002)(376002)(396003)(346002)(189003)(199004)(5660300002)(25786009)(478600001)(486006)(5640700003)(386003)(6506007)(102836004)(305945005)(64756008)(66446008)(2906002)(52116002)(81166006)(446003)(256004)(316002)(14454004)(81156014)(11346002)(476003)(2616005)(8936002)(2501003)(8676002)(50226002)(6916009)(99286004)(186003)(66066001)(4326008)(86362001)(6486002)(2351001)(4720700003)(66556008)(66946007)(66476007)(44832011)(3846002)(6436002)(7736002)(26005)(76176011)(66574012)(6512007)(36756003)(6116002)(71190400001)(107886003)(71200400001)(64030200001); DIR:OUT; SFP:1102; SCL:1; SRVR:SN1PR02MB3903; H:SN1PR02MB3901.namprd02.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nutanix.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pxapS7VPsvoPq0b+HHvB/kigIZZSoS9V045U9x9wN2gyXE5ebQ+Lme947sxxb55zCMLutoY4AiHW51O5WC2VvfnFBnpR9dRCBMh7y6WIjTZjTBoOZkMqeHfIK9A4wJd3f781Menj8Rpyr5meOpugfKyv85VfCjH1JL7lNtJ+rJOIp/L9BI5bHJJ104zBmkZpZ3mUIrFVbaEk0tSJBHKMjOm3x0B9YGPXT4FfDOWgNaSGsXbvrPzLAwPgL1i7PhTAt1Vdh4lFaJea18xTEeExrmAw23jXoQ5VM4PTxK3+b/hhVkuHiP0AaODckXf58GaP0gbdM/ny5N3b2OClPnbiL/13vKic+612Eg4/TF6gkPqCL42fIZPaZyEsk3gUXMk/rKQ00mH1Ck4i5A7LkpB8kozs/L7wn64MPlXpb94nzZQ= MIME-Version: 1.0 X-OriginatorOrg: nutanix.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1400e480-722d-4ca0-4225-08d749075ef4 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Oct 2019 20:13:50.4608 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: bb047546-786f-4de1-bd75-24e5b6f79043 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: XLme9KU08qruXYvBfyC4RfFqzVsa4aREhORj1kNR2NyaIBjXfxByNnLEl0KTdxemuoMOLHWx4EKF/bv1CFSSSM2qqxQPXwSt+aMgImWW7hg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR02MB3903 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-04_12:2019-10-03,2019-10-04 signatures=0 X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH v2 2/2 ovn] OVN: Use ipv4.src and ipv4.dst actions for NAT rules X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org For dnat_and_snat rules which are meant to be stateless instead of using ct_snat/dnat OVN actions, we will use ipv4.src/ipv4.dst. This actions will do 1:1 mapping to inner ip to external ip, while recalculating the checksums. Signed-off-by: Ankur Sharma --- northd/ovn-northd.8.xml | 34 +++++++++++++++---- northd/ovn-northd.c | 86 +++++++++++++++++++++++++++++++++++++++++++------ tests/ovn-northd.at | 50 ++++++++++++++++++++++++++++ 3 files changed, 154 insertions(+), 16 deletions(-) diff --git a/northd/ovn-northd.8.xml b/northd/ovn-northd.8.xml index 0f4f1c1..7d5d102 100644 --- a/northd/ovn-northd.8.xml +++ b/northd/ovn-northd.8.xml @@ -1718,7 +1718,9 @@ icmp6 { to change the source IP address of a packet from A to B, a priority-90 flow matches ip && ip4.dst == B with an action - ct_snat; . + ct_snat; . If the NAT rule is of type dnat_and_snat + and has is_stateless=true in the options, then the action + would be replace_dst_ip(B).

@@ -1738,7 +1740,10 @@ icmp6 { B, a priority-100 flow matches ip && ip4.dst == B && inport == GW, where GW is the logical router gateway port, with an - action ct_snat;. + action ct_snat;. If the NAT rule is of type + dnat_and_snat and has is_stateless=true in the + options, then the action would be replace_dst_ip + (B).

@@ -1858,7 +1863,10 @@ icmp6 { Gateway router is configured to force SNAT any DNATed packet, the above action will be replaced by flags.force_snat_for_dnat = 1; flags.loopback = 1; - ct_dnat(B);. + ct_dnat(B);. If the NAT rule is of type + dnat_and_snat and has is_stateless=true in the + options, then the action would be replace_dst_ip + (B).

  • @@ -1890,7 +1898,10 @@ icmp6 { B, a priority-100 flow matches ip && ip4.dst == B && inport == GW, where GW is the logical router gateway port, with an - action ct_dnat(B);. + action ct_dnat(B);. If the NAT rule is of + type dnat_and_snat and has is_stateless=true in the + options, then the action would be replace_dst_ip + (B).

    @@ -2553,7 +2564,10 @@ nd_ns { matches ip && ip4.src == B && outport == GW, where GW is the logical router gateway port, with an action - ct_dnat;. + ct_dnat;. If the NAT rule is of type + dnat_and_snat and has is_stateless=true in the + options, then the action would be replace_src_ip + (B).

    @@ -2611,7 +2625,10 @@ nd_ns { ip && ip4.src == A with an action ct_snat(B);. The priority of the flow is calculated based on the mask of A, with matches - having larger masks getting higher priorities. + having larger masks getting higher priorities. If the NAT rule is + of type dnat_and_snat and has is_stateless=true in the + options, then the action would be replace_src_ip + (B).

    A priority-0 logical flow with match 1 has actions @@ -2634,7 +2651,10 @@ nd_ns { logical router gateway port, with an action ct_snat(B);. The priority of the flow is calculated based on the mask of A, with matches - having larger masks getting higher priorities. + having larger masks getting higher priorities. If the NAT rule + is of type dnat_and_snat and has is_stateless=true + in the options, then the action would be replace_src_ip + (B).

    diff --git a/northd/ovn-northd.c b/northd/ovn-northd.c index f393ceb..4036392 100644 --- a/northd/ovn-northd.c +++ b/northd/ovn-northd.c @@ -6314,6 +6314,18 @@ copy_ra_to_sb(struct ovn_port *op, const char *address_mode) smap_destroy(&options); } +static inline bool +lrouter_nat_is_stateless(const struct nbrec_nat *nat) +{ + const char *is_stateless = smap_get(&nat->options, "is_stateless"); + + if (is_stateless && !strcmp(is_stateless, "true")) { + return true; + } + + return false; +} + static void build_lrouter_flows(struct hmap *datapaths, struct hmap *ports, struct hmap *lflows, struct shash *meter_groups) @@ -7052,6 +7064,7 @@ build_lrouter_flows(struct hmap *datapaths, struct hmap *ports, nat = od->nbr->nat[i]; ovs_be32 ip, mask; + bool is_stateless = lrouter_nat_is_stateless(nat); char *error = ip_parse_masked(nat->external_ip, &ip, &mask); if (error || mask != OVS_BE32_MAX) { @@ -7117,15 +7130,26 @@ build_lrouter_flows(struct hmap *datapaths, struct hmap *ports, if (!od->l3dgw_port) { /* Gateway router. */ ds_clear(&match); + ds_clear(&actions); ds_put_format(&match, "ip && ip4.dst == %s", nat->external_ip); + + if (!strcmp(nat->type, "dnat_and_snat") && is_stateless) { + ds_put_format(&actions, "ip4.dst=%s; next;", + nat->logical_ip); + } else { + ds_put_cstr(&actions, "ct_snat;"); + } + ovn_lflow_add(lflows, od, S_ROUTER_IN_UNSNAT, 90, - ds_cstr(&match), "ct_snat;"); + ds_cstr(&match), ds_cstr(&actions)); } else { /* Distributed router. */ /* Traffic received on l3dgw_port is subject to NAT. */ ds_clear(&match); + ds_clear(&actions); + ds_put_format(&match, "ip && ip4.dst == %s" " && inport == %s", nat->external_ip, @@ -7136,8 +7160,16 @@ build_lrouter_flows(struct hmap *datapaths, struct hmap *ports, ds_put_format(&match, " && is_chassis_resident(%s)", od->l3redirect_port->json_key); } + + if (!strcmp(nat->type, "dnat_and_snat") && is_stateless) { + ds_put_format(&actions, "ip4.dst=%s; next;", + nat->logical_ip); + } else { + ds_put_cstr(&actions, "ct_snat;"); + } + ovn_lflow_add(lflows, od, S_ROUTER_IN_UNSNAT, 100, - ds_cstr(&match), "ct_snat;"); + ds_cstr(&match), ds_cstr(&actions)); /* Traffic received on other router ports must be * redirected to the central instance of the l3dgw_port @@ -7172,8 +7204,16 @@ build_lrouter_flows(struct hmap *datapaths, struct hmap *ports, ds_put_format(&actions, "flags.force_snat_for_dnat = 1; "); } - ds_put_format(&actions, "flags.loopback = 1; ct_dnat(%s);", - nat->logical_ip); + + if (!strcmp(nat->type, "dnat_and_snat") && is_stateless) { + ds_put_format(&actions, "flags.loopback = 1; " + "ip4.dst=%s; next;", + nat->logical_ip); + } else { + ds_put_format(&actions, "flags.loopback = 1; ct_dnat(%s);", + nat->logical_ip); + } + ovn_lflow_add(lflows, od, S_ROUTER_IN_DNAT, 100, ds_cstr(&match), ds_cstr(&actions)); } else { @@ -7192,8 +7232,15 @@ build_lrouter_flows(struct hmap *datapaths, struct hmap *ports, od->l3redirect_port->json_key); } ds_clear(&actions); - ds_put_format(&actions, "ct_dnat(%s);", - nat->logical_ip); + + if (!strcmp(nat->type, "dnat_and_snat") && is_stateless) { + ds_put_format(&actions, "ip4.dst=%s; next;", + nat->logical_ip); + } else { + ds_put_format(&actions, "ct_dnat(%s);", + nat->logical_ip); + } + ovn_lflow_add(lflows, od, S_ROUTER_IN_DNAT, 100, ds_cstr(&match), ds_cstr(&actions)); @@ -7235,7 +7282,14 @@ build_lrouter_flows(struct hmap *datapaths, struct hmap *ports, ds_put_format(&actions, "eth.src = "ETH_ADDR_FMT"; ", ETH_ADDR_ARGS(mac)); } - ds_put_format(&actions, "ct_dnat;"); + + if (!strcmp(nat->type, "dnat_and_snat") && is_stateless) { + ds_put_format(&actions, "ip4.src=%s; next;", + nat->external_ip); + } else { + ds_put_format(&actions, "ct_dnat;"); + } + ovn_lflow_add(lflows, od, S_ROUTER_OUT_UNDNAT, 100, ds_cstr(&match), ds_cstr(&actions)); } @@ -7251,7 +7305,14 @@ build_lrouter_flows(struct hmap *datapaths, struct hmap *ports, ds_put_format(&match, "ip && ip4.src == %s", nat->logical_ip); ds_clear(&actions); - ds_put_format(&actions, "ct_snat(%s);", nat->external_ip); + + if (!strcmp(nat->type, "dnat_and_snat") && is_stateless) { + ds_put_format(&actions, "ip4.src=%s; next;", + nat->external_ip); + } else { + ds_put_format(&actions, "ct_snat(%s);", + nat->external_ip); + } /* The priority here is calculated such that the * nat->logical_ip with the longest mask gets a higher @@ -7280,7 +7341,14 @@ build_lrouter_flows(struct hmap *datapaths, struct hmap *ports, ds_put_format(&actions, "eth.src = "ETH_ADDR_FMT"; ", ETH_ADDR_ARGS(mac)); } - ds_put_format(&actions, "ct_snat(%s);", nat->external_ip); + + if (!strcmp(nat->type, "dnat_and_snat") && is_stateless) { + ds_put_format(&actions, "ip4.src=%s; next;", + nat->external_ip); + } else { + ds_put_format(&actions, "ct_snat(%s);", + nat->external_ip); + } /* The priority here is calculated such that the * nat->logical_ip with the longest mask gets a higher diff --git a/tests/ovn-northd.at b/tests/ovn-northd.at index 42033d5..64511a9 100644 --- a/tests/ovn-northd.at +++ b/tests/ovn-northd.at @@ -966,3 +966,53 @@ OVS_WAIT_UNTIL([ovn-sbctl get Port_Binding ${uuid} options:redirect-type], [0], ]) AT_CLEANUP + +AT_SETUP([ovn -- check stateless dnat_and_snat rule]) +AT_SKIP_IF([test $HAVE_PYTHON = no]) +ovn_start + +ovn-sbctl chassis-add gw1 geneve 127.0.0.1 + +ovn-nbctl lr-add R1 +ovn-nbctl lrp-add R1 R1-S1 02:ac:10:01:00:01 172.16.1.1/24 + +ovn-nbctl ls-add S1 +ovn-nbctl lsp-add S1 S1-R1 +ovn-nbctl lsp-set-type S1-R1 router +ovn-nbctl lsp-set-addresses S1-R1 router +ovn-nbctl --wait=sb lsp-set-options S1-R1 router-port=R1-S1 + +ovn-nbctl lrp-set-gateway-chassis R1-S1 gw1 + +uuid=`ovn-sbctl --columns=_uuid --bare find Port_Binding logical_port=cr-R1-S1` +echo "CR-LRP UUID is: " $uuid + +ovn-nbctl lr-nat-add R1 dnat_and_snat 172.16.1.1 50.0.0.11 +AT_CHECK([ovn-sbctl dump-flows R1 | grep ct_snat | wc -l], [0], [2 +]) + +AT_CHECK([ovn-sbctl dump-flows R1 | grep ct_dnat | wc -l], [0], [2 +]) + +AT_CHECK([ovn-sbctl dump-flows R1 | grep ip4.dst=| wc -l], [0], [0 +]) + +AT_CHECK([ovn-sbctl dump-flows R1 | grep ip4.src=| wc -l], [0], [0 +]) + +ovn-nbctl lr-nat-del R1 dnat_and_snat 172.16.1.1 + +ovn-nbctl --stateless lr-nat-add R1 dnat_and_snat 172.16.1.1 50.0.0.11 +AT_CHECK([ovn-sbctl dump-flows R1 | grep ct_snat | wc -l], [0], [0 +]) + +AT_CHECK([ovn-sbctl dump-flows R1 | grep ct_dnat | wc -l], [0], [0 +]) + +AT_CHECK([ovn-sbctl dump-flows R1 | grep ip4.dst=| wc -l], [0], [2 +]) + +AT_CHECK([ovn-sbctl dump-flows R1 | grep ip4.src=| wc -l], [0], [2 +]) + +AT_CLEANUP