netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* feature - ip link set <dev> primary <dev> ?
@ 2016-02-05  3:07 James Feeney
  2016-02-05  9:10 ` Nikolay Aleksandrov
  0 siblings, 1 reply; 2+ messages in thread
From: James Feeney @ 2016-02-05  3:07 UTC (permalink / raw)
  To: netdev

Should there be an

 ip link set <primary-slave-device> primary <master-device>

command in the iproute2 package, to set the Primary Slave on a "bond" type link?

It seems that the alternative now is to use the sysfs, with

 echo -n <primary> > /sys/devices/virtual/net/<master-device>/bonding/primary

which, in systemd Service Unit Files, requires "/usr/bin/sh -c 'echo ...'"
rather than simply "/usr/bin/echo ...".  "ip" seems to handle all other "bond"
configuration itself.

Thanks
James

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-05  9:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-05  3:07 feature - ip link set <dev> primary <dev> ? James Feeney
2016-02-05  9:10 ` Nikolay Aleksandrov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).