mirror_iproute2/bridge
Roopa Prabhu 8652eeb3ab bridge: vlan: support for per vlan tunnel info
This patch uses kernel bridge vlan attribute
IFLA_BRIDGE_VLAN_TUNNEL_INFO to set/delete/show per vlan tunnel info.

$bridge vlan add dev vxlan0 vid 2000 tunnel_info id 2000
$bridge vlan add dev vxlan0 vid 1000-1001 tunnel_info id 2000-2001

$bridge vlan tunnelshow
port    vlan ids        tunnel id
vxlan0   1000-1001       1000-1001
         2000            2000

$bridge  -j vlan tunnelshow
{
    "dummy0": [],
    "dummy1": [],
    "bridge": [],
    "vxlan0": [{
            "vlan": 1000,
            "vlanEnd": 1001,
            "tunid": 1000,
            "tunidEnd": 1001
        },{
            "vlan": 2000,
            "tunid": 2000
        }
    ]
}

This patch also fixes a json termination bug in print_vlan
when filter vlan is provided by the user.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
2017-10-31 18:04:30 +01:00
..
.gitignore Add bridge command 2012-08-01 15:23:49 -07:00
br_common.h bridge: isolate vlans parsing code in a separate API 2017-10-26 12:35:04 +02:00
bridge.c bridge: add json support for bridge vlan show 2016-07-20 12:02:02 -07:00
fdb.c Merge branch 'master' into net-next 2017-10-27 09:27:43 +02:00
link.c iplink: bridge: support bridge port vlan_tunnel attribute 2017-10-31 18:04:30 +01:00
Makefile config: put CFLAGS/LDLIBS in config.mk 2017-08-23 10:03:09 -07:00
mdb.c lib/libnetlink: update rtnl_talk to support malloc buff at run time 2017-10-26 12:29:29 +02:00
monitor.c scrub out whitespace issues 2016-03-27 10:50:14 -07:00
vlan.c bridge: vlan: support for per vlan tunnel info 2017-10-31 18:04:30 +01:00