]> git.ipfire.org Git - thirdparty/iproute2.git/commit
vxlan: Add support for modifying vxlan device attributes
authorGirish Moodalbail <girish.moodalbail@oracle.com>
Sat, 6 May 2017 18:37:43 +0000 (11:37 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 11 May 2017 18:11:08 +0000 (11:11 -0700)
commit01c659955ae6a80216f1d56bb3a4b46ca48a5cd5
tree48e8199ba356a72ad208852528cb68e938590db2
parentaac40403ea7507fdaa4dc2c5354f0acbae7955a0
vxlan: Add support for modifying vxlan device attributes

Ability to change vxlan device attributes was added to kernel through
commit 8bcdc4f3a20b ("vxlan: add changelink support"), however one
cannot do the same through ip(8) command.  Changing the allowed vxlan
device attributes using 'ip link set dev <vxlan_name> type vxlan
<allowed_attributes>' currently fails with 'operation not supported'
error.  This failure is due to the incorrect rtnetlink message
construction for the 'ip link set' operation.

The vxlan_parse_opt() callback function is called for parsing options
for both 'ip link add' and 'ip link set'. For the 'add' case, we pass
down default values for those attributes that were not provided as CLI
options. However, for the 'set' case we should be only passing down the
explicitly provided attributes and not any other (default) attributes.

Signed-off-by: Girish Moodalbail <girish.moodalbail@oracle.com>
ip/iplink_vxlan.c