]> git.proxmox.com Git - mirror_iproute2.git/commit
iproute2: support device group semantics
authorVlad Dogaru <ddvlad@rosedu.org>
Wed, 2 Feb 2011 18:23:41 +0000 (20:23 +0200)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Fri, 25 Feb 2011 20:43:14 +0000 (12:43 -0800)
commitdb02608b6f408998ea8c823fb791cead3e574f50
tree93a18b178097d4c645b5a393b42d4fed582e0f61
parent26ad3aecfeeb93cd396a199a5e664e749bcabc8d
iproute2: support device group semantics

Add the group keyword to ip link set, which has the following meaning:
If both a group and a device name are pressent, we change the device's
group to the specified one. If only a group is present, then the
operation specified by the rest of the command should apply on an entire
group, not a single device.

So, to set eth0 to the default group, one would use
ip link set dev eth0 group default

Conversely, to set all the devices in the default group down, use
ip link set group default down

Signed-off-by: Vlad Dogaru <ddvlad@rosedu.org>
include/utils.h
ip/iplink.c
ip/link_veth.c
man/man8/ip.8