Thread (37 messages) 37 messages, 5 authors, 2013-06-05

Re: [PATCH iproute2] vxlan: allow specifying multiple default destinations

From: Mike Rapoport <hidden>
Date: 2013-06-02 07:09:24

On Thu, May 30, 2013 at 6:57 PM, Thomas Graf [off-list ref] wrote:
On 05/30/13 at 03:46pm, Mike Rapoport wrote:
quoted
I'm feeling Ok about "ip link set [..] dstadd/dstdel". What does bother
me is that you can't have different parameters for "ip link add" and "ip
link set" for vxlan (and other iplink) utility. So, one can use
ip link add [..] dstdel
which does not make sense...
You can easily pass an additional argument into iplink_modify()
and exclude certain options in the "add" use case.
I think there's no need to pass an additional argument to iplink_modify.
The vxlan_parse_opts may check the flags in nlmsghdr to distinguish
between the "add" and "set" cases.
Than we'll have 'ip link add [..]' as it was and the 'ip link set
[..]' will be used to manage default destinations.

--
Sincerely yours,
Mike.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help