Add admin-up flag to L2TP tunnels and start tunnels set to down 01/1701/3
authorPierre Pfister <ppfister@cisco.com>
Wed, 22 Jun 2016 11:54:48 +0000 (12:54 +0100)
committerChris Luke <chris_luke@comcast.com>
Fri, 24 Jun 2016 12:55:22 +0000 (12:55 +0000)
commit80ee21386cea217d0e9292d2a8b15ea88bf99d30
tree69938e625f969b7d9c8352cdceb7430fa6ac2367
parentde393bb76d8c221e1145f62070f51a9ca4191f9f
Add admin-up flag to L2TP tunnels and start tunnels set to down

L2TP tunnels use virtual interfaces but directly send
packets to l2-input node (not ethernet-input).
This node requires a bridge-domain to be associated with
the interface.

Past code was immediatly turning the interface up, but
some packets could be sent to l2-input without bridge domain
between interface creation and association with a bridge domain.

The tunnel is now created as down and has to be set up later
(typically after being associated with a bridge-domain).

Another option would have been to change the api and enforce
a bridge-domain to be specified before the tunnel, but this
is less flexible for the user.

Change-Id: I26d1f36bb4f327d9fa1c8044023f2210c4117904
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
vnet/vnet/l2tp/decap.c
vnet/vnet/l2tp/encap.c
vnet/vnet/l2tp/l2tp.c
vnet/vnet/l2tp/l2tp.h