netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jiri Benc <jbenc@redhat.com>
To: Thomas Graf <tgraf@suug.ch>
Cc: stephen@networkplumber.org, netdev@vger.kernel.org,
	roopa@cumulusnetworks.com, mengke.liu@intel.com,
	tom@herbertland.com
Subject: Re: [PATCH 2/3] lwtunnel: Add encapsulation support to ip route
Date: Thu, 15 Oct 2015 18:51:46 +0200	[thread overview]
Message-ID: <20151015185146.3e398790@griffin> (raw)
In-Reply-To: <79f6f592e3ca682392c2968b10cf821ca411acac.1444907416.git.tgraf@suug.ch>

On Thu, 15 Oct 2015 13:13:39 +0200, Thomas Graf wrote:
> From: Roopa Prabhu <roopa@cumulusnetworks.com>
> 
> This patch adds support to parse and print lwtunnel
> encapsulation attributes attached to routes for MPLS
> and IP tunnels.
> 
> example:
> Add ipv4 route with mpls encap attributes:
> 
> Examples:
> 
>   MPLS:
>   $ ip route add 40.1.2.0/30 encap mpls 200 via inet 40.1.1.1 dev eth3
>   $ ip route show
>   40.1.2.0/30  encap mpls 200 via 40.1.1.1 dev eth3
> 
>   Add ipv4 multipath route with mpls encap attributes:
>   $ ip route add 10.1.1.0/30 nexthop encap mpls 200 via 10.1.1.1 dev eth0 \
> 		    nexthop encap mpls 700 via  40.1.1.2 dev eth3
>   $ ip route show
>   10.1.1.0/30
>     nexthop encap mpls 200  via 10.1.1.1  dev eth0 weight 1
>     nexthop encap mpls 700  via 40.1.1.2  dev eth3 weight 1
> 
>   IP:
>   $ ip route add 10.1.1.1/24 encap ip id 200 dst 20.1.1.1 dev vxlan0
> 
> Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
> Signed-off-by: Thomas Graf <tgraf@suug.ch>

Acked-by: Jiri Benc <jbenc@redhat.com>

-- 
Jiri Benc

  reply	other threads:[~2015-10-15 16:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-15 11:13 [PATCH 0/3 iproute2] Lightweight tunnels Thomas Graf
2015-10-15 11:13 ` [PATCH 1/3] libnetlink: introduce rta_nest and u8,u16,u64 helpers for nesting within rtattr Thomas Graf
2015-10-15 16:51   ` Jiri Benc
2015-10-15 11:13 ` [PATCH 2/3] lwtunnel: Add encapsulation support to ip route Thomas Graf
2015-10-15 16:51   ` Jiri Benc [this message]
2015-10-15 11:13 ` [PATCH 3/3] ip-route man: add usage and description for lwtunnel encap attributes Thomas Graf
2015-10-15 16:52   ` Jiri Benc
2015-10-16 23:16   ` Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151015185146.3e398790@griffin \
    --to=jbenc@redhat.com \
    --cc=mengke.liu@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=roopa@cumulusnetworks.com \
    --cc=stephen@networkplumber.org \
    --cc=tgraf@suug.ch \
    --cc=tom@herbertland.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).