]> git.proxmox.com Git - mirror_iproute2.git/commit
bridge: vlan: support for per vlan tunnel info
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Sat, 28 Oct 2017 05:13:50 +0000 (22:13 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 31 Oct 2017 17:04:30 +0000 (18:04 +0100)
commit8652eeb3ab12954c9ee04c8f0135808ef1456797
tree654de9b6a86dea2b1497a27b30977c86d109be43
parent8cfde5c97fcf8edc0c031bf4ddd972b80cc34120
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>
bridge/vlan.c
man/man8/bridge.8