Commit e0d47aa3 authored by Sergey Popovich's avatar Sergey Popovich Committed by Stephen Hemminger

Handle netdev group for veth peer too

Currently ip-link(8) parses, but ignores "group" argument to
peer interface on veth creation.

Insert IFLA_GROUP attribute for peer interface when present.
Signed-off-by: default avatarSergey Popovich <popovich_sergei@mail.ru>
parent be2c3142
......@@ -56,6 +56,9 @@ static int veth_parse_opt(struct link_util *lu, int argc, char **argv,
addattr_l(hdr, 1024, IFLA_IFNAME, name, len);
}
if (group != -1)
addattr32(hdr, 1024, IFLA_GROUP, group);
data->rta_len = (void *)NLMSG_TAIL(hdr) - (void *)data;
return argc - 1 - err;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment