From patchwork Mon Mar 20 16:14:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timothy Redaelli X-Patchwork-Id: 741073 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3vn1Hl5nFmz9s3l for ; Tue, 21 Mar 2017 03:14:59 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 7B58DA88; Mon, 20 Mar 2017 16:14:56 +0000 (UTC) X-Original-To: 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 AAEAE9FA for ; Mon, 20 Mar 2017 16:14:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 392C81F9 for ; Mon, 20 Mar 2017 16:14:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 221F767EA7 for ; Mon, 20 Mar 2017 16:14:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 221F767EA7 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=tredaelli@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 221F767EA7 Received: from graphite.mxp.redhat.com (dhcp-176-62.mxp.redhat.com [10.32.176.62]) by smtp.corp.redhat.com (Postfix) with ESMTP id B9CCD62926; Mon, 20 Mar 2017 16:14:52 +0000 (UTC) From: Timothy Redaelli To: dev@openvswitch.org Date: Mon, 20 Mar 2017 17:14:49 +0100 Message-Id: <909750453d107ccfab511f3e0a382be7e5237df4.1490026489.git.tredaelli@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 20 Mar 2017 16:14:55 +0000 (UTC) X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD 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] Documentation: Fix the ovs-ifup and ovs-ifdown examples in kvm.rst 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: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org Signed-off-by: Timothy Redaelli --- Documentation/howto/kvm.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/howto/kvm.rst b/Documentation/howto/kvm.rst index 4b43af3..29732a9 100644 --- a/Documentation/howto/kvm.rst +++ b/Documentation/howto/kvm.rst @@ -46,7 +46,7 @@ make use of example Open vSwitch bridges that we'll describe in this guide. Create the following two files and store them in known locations. For example:: - echo << EOF > /etc/ovs-ifup + $ cat << 'EOF' > /etc/ovs-ifup #!/bin/sh switch='br0' @@ -56,12 +56,13 @@ Create the following two files and store them in known locations. For example:: :: - echo << EOF > /etc/ovs-ifdown + $ cat << 'EOF' > /etc/ovs-ifdown #!/bin/sh switch='br0' /sbin/ifconfig $1 0.0.0.0 down ovs-vsctl del-port ${switch} $1 + EOF The basic usage of Open vSwitch is described at the end of :doc:`/intro/install/general`. If you haven't already, create a bridge named