Systemd/man
Susant Sahani fe8ac65b68 networkd: add support for mode
This patch adds supports networkd to configure bond mode
during creation via persistent conf. Mode can be configured
with conf param 'Mode'. A new section Bond is added to the
conf to support bond mode.

These modes can be configured now.

balance-rr
active-backup
balance-xor
broadcast
802.3ad
balance-tlb
balance-alb

Example conf file: test-bond.conf
[NetDev]
Name=bond1
Kind=bond

[Bond]
Mode=balance-xor

Test case:
1. start networkd service:

12: bond1: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc
noqueue state UNKNOWN mode DEFAULT group default
link/ether 22:89:6c:47:23:d2 brd ff:ff:ff:ff:ff:ff

2. find bond mode:

cat /proc/net/bonding/bond1
    Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
    Bonding Mode: load balancing (xor)
    Transmit Hash Policy: layer2 (0)
    MII Status: up
    MII Polling Interval (ms): 0
    Up Delay (ms): 0
    Down Delay (ms): 0

Changes:
       1. Added file networkd-bond.c
       2. Bond mode enum BondMode
       3. conf section [Bond]

[tomegun: whitespace]
2014-07-07 21:52:01 +02:00
..
.gitignore build-sys,man: use XML entities to substite strings 2013-03-29 20:30:21 -04:00
Makefile build-sys: add small redirecting Makefiles to simplify compilation from within emacs 2010-05-17 01:44:03 +02:00
binfmt.d.xml man: resolve word omissions 2013-12-25 22:53:45 -05:00
bootchart.conf.xml bootchart: add control group option 2014-04-24 19:21:51 -04:00
bootctl.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
bootup.xml man: more grammar improvements 2013-07-03 08:19:20 -04:00
busctl.xml man: xinclude --host/--machine 2014-02-20 22:43:27 -05:00
coredump.conf.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
coredumpctl.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
crypttab.xml man: mention that x-systemd.device-timeout is only for fstab 2014-06-30 18:41:17 -04:00
custom-html.xsl man: always supply quotes around literals 2013-06-26 08:05:14 -04:00
custom-man.xsl man: always supply quotes around literals 2013-06-26 08:05:14 -04:00
daemon.xml man: daemon - typo fix 2014-06-30 22:38:17 +02:00
file-hierarchy.xml man: add link to Open Group Base Specifications 2014-07-03 16:41:52 -04:00
halt.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
hostname.xml man: document systemd-firstboot(1) 2014-07-07 18:49:17 +02:00
hostnamectl.xml man: document systemd-firstboot(1) 2014-07-07 18:49:17 +02:00
journalctl.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
journald.conf.xml journald: make SplitMode=uid the default 2014-06-19 12:38:45 +02:00
kernel-command-line.xml debug-generator: add new kernel cmdline option systemd.wants= to add units to the initial transaction 2014-06-20 13:36:28 +02:00
kernel-install.xml os-release: define /usr/lib/os-release as fallback for /etc/os-release 2014-06-13 20:11:59 +02:00
less-variables.xml man: use xinclude to de-deduplicate common text 2014-02-12 01:10:31 -05:00
libsystemd-pkgconfig.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
locale.conf.xml man: document systemd-firstboot(1) 2014-07-07 18:49:17 +02:00
localectl.xml man: document systemd-firstboot(1) 2014-07-07 18:49:17 +02:00
localtime.xml man: document systemd-firstboot(1) 2014-07-07 18:49:17 +02:00
loginctl.xml man: xinclude --host/--machine 2014-02-20 22:43:27 -05:00
logind.conf.xml man: logind.conf: fix grammar issues, unclear wording, and unclear default values 2014-05-16 23:10:11 -04:00
machine-id.xml man: document systemd-firstboot(1) 2014-07-07 18:49:17 +02:00
machine-info.xml doc: resolve missing/extraneous words or inappropriate forms 2014-02-17 19:03:07 -05:00
machinectl.xml machinectl: reimplement machinectl's "reboot" verb on top of "kill", and add new verb "poweroff" 2014-03-18 04:48:26 +01:00
modules-load.d.xml man: wording and grammar updates 2013-09-12 22:09:57 +02:00
nss-myhostname.xml man: always place <programlisting> and </programlisting> in a line with actual sources, so that we don't get spurious newlines in the man page output 2014-02-14 15:56:19 +01:00
os-release.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
pam_systemd.xml man: recommend that XDG_SESSION_DESKTOP and XDG_CURRENT_DESKTOP use the same identifiers 2014-04-23 20:11:38 +02:00
resolved.conf.xml resolved: add daemon to manage resolv.conf 2014-05-19 18:14:56 +02:00
runlevel.xml Revert back to /var/run at a couple of problems 2014-02-26 02:47:43 +01:00
sd-daemon.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
sd-id128.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
sd-journal.xml man: fix references to sd_journal_cutoff_realtime_usec 2014-06-06 15:50:30 +02:00
sd-login.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
sd-readahead.xml man: improvements to comma placement 2013-12-25 22:53:46 -05:00
sd_booted.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
sd_bus_creds_get_pid.xml build-sys: add conditionals and regenerate manpage list 2014-02-20 22:43:27 -05:00
sd_bus_creds_new_from_pid.xml build-sys: add conditionals and regenerate manpage list 2014-02-20 22:43:27 -05:00
sd_bus_error.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_message_append.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_message_append_array.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_message_append_basic.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_message_append_string_memfd.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_message_append_strv.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_message_get_cookie.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_bus_message_get_monotonic_usec.xml man: explain that the timestamps on incoming kdbus messages are not necessarily monotonically increasing 2014-04-13 17:42:11 -07:00
sd_bus_negotiate_fds.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_new.xml build-sys: add conditionals and regenerate manpage list 2014-02-20 22:43:27 -05:00
sd_bus_open_user.xml doc: corrections to words and forms 2014-05-07 20:13:26 -04:00
sd_bus_path_encode.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_request_name.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_event_add_time.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_event_new.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_get_seats.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_id128_get_machine.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_id128_randomize.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_id128_to_string.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_is_fifo.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_add_match.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_get_catalog.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_get_cursor.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_get_cutoff_realtime_usec.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_get_data.xml man/sd_journal_get_data: fix variable naming in example 2014-07-01 16:38:40 +02:00
sd_journal_get_fd.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_get_realtime_usec.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_get_usage.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_next.xml man/sd_journal_next: fix argument in example 2014-07-01 16:38:37 +02:00
sd_journal_open.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_print.xml man: sd_journal_send does nothing when journald is not available 2014-05-09 08:39:51 -04:00
sd_journal_query_unique.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_seek_head.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_stream_fd.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_listen_fds.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
sd_login_monitor_new.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_notify.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
sd_pid_get_session.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_readahead.xml man: improvements to comma placement 2013-12-25 22:53:46 -05:00
sd_seat_get_active.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_session_is_active.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_uid_get_state.xml man: describe sd_uid_get_display 2014-05-24 18:50:21 -04:00
sd_watchdog_enabled.xml man: fix sd_watchdog_enabled() prototype in man page 2014-06-27 19:51:14 +02:00
shutdown.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
standard-options.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
sysctl.d.xml doc: typographical improvements and choice of words 2014-06-28 00:06:31 -04:00
systemctl.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
systemd-activate.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-analyze.xml man: xinclude --host/--machine 2014-02-20 22:43:27 -05:00
systemd-ask-password-console.service.xml Reword sentences that contain psuedo-English "resp." 2012-10-16 01:03:01 +02:00
systemd-ask-password.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-backlight@.service.xml man: fix typos in backlight/rfkill page 2013-10-19 12:33:47 +02:00
systemd-binfmt.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd-bootchart.xml bootchart: add control group option 2014-04-24 19:21:51 -04:00
systemd-bus-proxyd.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-bus-proxyd@.service.xml Use /var/run/dbus/system_bus_socket for the D-Bus socket 2014-02-25 21:26:42 -05:00
systemd-cat.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-cgls.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-cgtop.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-cryptsetup-generator.xml man: wording and grammar updates 2013-10-15 08:19:49 -04:00
systemd-cryptsetup@.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd-debug-generator.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
systemd-delta.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-detect-virt.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-efi-boot-generator.xml man: wording and grammar updates 2013-09-10 18:34:41 +02:00
systemd-firstboot.xml man: document systemd-firstboot(1) 2014-07-07 18:49:17 +02:00
systemd-fsck@.service.xml man: beef up systemd-fsck description 2014-06-30 18:41:17 -04:00
systemd-fstab-generator.xml man: document fail/nofail, auto/noauto 2013-12-25 23:22:05 -05:00
systemd-getty-generator.xml man: resolve word omissions 2013-12-25 22:53:45 -05:00
systemd-gpt-auto-generator.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
systemd-halt.service.xml man: document fail/nofail, auto/noauto 2013-12-25 23:22:05 -05:00
systemd-hostnamed.service.xml man: improve grammar and word formatting in numerous man pages 2013-07-02 23:06:22 -04:00
systemd-inhibit.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-initctl.service.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd-journal-gatewayd.service.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-journal-remote.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
systemd-journald.service.xml journald: move /dev/log socket to /run 2014-06-04 16:53:58 +02:00
systemd-localed.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd-logind.service.xml man: document machinectl and systemd-machined 2013-07-06 22:23:31 -04:00
systemd-machine-id-setup.xml man: document systemd-firstboot(1) 2014-07-07 18:49:17 +02:00
systemd-machined.service.xml man: fix typo in documentation of systemd-machined 2013-08-04 21:47:14 -04:00
systemd-modules-load.service.xml man: remove "wine" from unrelated man pages 2013-08-15 18:07:47 +02:00
systemd-networkd-wait-online.service.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
systemd-networkd.service.xml resolved: add daemon to manage resolv.conf 2014-05-19 18:14:56 +02:00
systemd-notify.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-nspawn.xml man: document nspawn's new --volatile switch 2014-07-04 12:56:57 +02:00
systemd-path.xml path: add new "systemd-path" utility for querying paths described in file-hierarchy(7) 2014-07-02 12:23:36 +02:00
systemd-quotacheck.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd-random-seed.service.xml fix lingering references to /var/lib/{backlight,random-seed} 2013-10-02 07:51:06 -04:00
systemd-readahead-replay.service.xml man: readahead: fix cmdline switch inconsistency between readahead.c and docs 2014-05-16 17:13:03 +02:00
systemd-remount-fs.service.xml man: add various filenames to the index 2013-05-03 01:00:42 -04:00
systemd-resolved.service.xml man: untabify systemd-resolved.service.xml 2014-06-22 12:26:09 -04:00
systemd-rfkill@.service.xml man: fix typos in backlight/rfkill page 2013-10-19 12:33:47 +02:00
systemd-run.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
systemd-shutdownd.service.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd-sleep.conf.xml man: multiple sleep modes are to be separated by whitespace, not commas 2014-03-11 05:24:22 +01:00
systemd-socket-proxyd.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-suspend.service.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-sysctl.service.xml man: remove "wine" from unrelated man pages 2013-08-15 18:07:47 +02:00
systemd-system-update-generator.xml man: fix invalid links to generator wiki pages 2012-10-02 11:52:29 -04:00
systemd-system.conf.xml cgroups: simplify CPUQuota= logic 2014-05-22 11:53:12 +09:00
systemd-sysusers.xml man: document the sysusers tool 2014-06-29 22:27:07 +02:00
systemd-timedated.service.xml man: improve grammar and word formatting in numerous man pages 2013-07-02 23:06:22 -04:00
systemd-timesyncd.service.xml timesyncd: add unit and man page 2014-04-29 09:51:53 +02:00
systemd-tmpfiles.xml tmpfiles: add --root option to operate on an alternate fs tree 2014-03-14 09:31:34 -04:00
systemd-tty-ask-password-agent.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-udevd.service.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-update-done.service.xml man: document systemd-update-done.service 2014-07-01 00:16:48 +02:00
systemd-update-utmp.service.xml doc: typographical fine tuning 2014-05-06 23:05:39 +02:00
systemd-user-sessions.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd-vconsole-setup.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd.automount.xml man: wording and grammar updates 2013-09-12 22:09:57 +02:00
systemd.device.xml man: grammar and wording improvements 2013-12-25 22:53:46 -05:00
systemd.exec.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
systemd.journal-fields.xml coredump: coredumpctl is so useful now, make it a first-class citizen 2014-06-19 13:46:01 +02:00
systemd.kill.xml doc: update punctuation 2014-02-17 19:03:07 -05:00
systemd.link.xml man: split systemd.network(5) and related into various sections for better readability 2014-06-27 20:50:08 +02:00
systemd.mount.xml man: mention x-initrd.mount option in fstab options list 2014-06-30 18:41:17 -04:00
systemd.netdev.xml networkd: add support for mode 2014-07-07 21:52:01 +02:00
systemd.network.xml man: network - document Peer key 2014-07-07 14:24:07 +02:00
systemd.path.xml man: wording and grammar updates 2013-09-12 22:09:57 +02:00
systemd.preset.xml man: resolve word omissions 2013-12-25 22:53:45 -05:00
systemd.resource-control.xml man: reword StartupCPUShares= description 2014-05-24 18:50:21 -04:00
systemd.scope.xml man: wording and grammar updates 2013-10-15 08:19:49 -04:00
systemd.service.xml man: reference RestartForceExitStatus= from the Restart= description 2014-07-03 15:37:46 +02:00
systemd.slice.xml man: Searching for an explanation of what a "slice unit" was, found this, felt compelled to send in fixes for the obvious typos 2014-06-10 18:05:58 +02:00
systemd.snapshot.xml man: update scope unit man page a bit 2013-07-19 19:04:17 +02:00
systemd.socket.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
systemd.special.xml man: mention x-initrd.mount option in fstab options list 2014-06-30 18:41:17 -04:00
systemd.swap.xml man: improvements to comma placement 2013-12-25 22:53:46 -05:00
systemd.target.xml man: use <literal> not <filename> for suffixes 2013-07-12 01:09:25 -04:00
systemd.time.xml time: support @ syntax for denoting times since the UNIX epoch 1970-1-1 2014-03-25 04:08:16 +01:00
systemd.timer.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
systemd.unit.xml firstboot: get rid of firstboot generator again, introduce ConditionFirstBoot= instead 2014-07-07 21:05:09 +02:00
systemd.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
sysusers.d.xml sysusers: add new line type "m" to add users as members to groups 2014-07-03 19:54:46 +02:00
telinit.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
timedatectl.xml man: document systemd-firstboot(1) 2014-07-07 18:49:17 +02:00
tmpfiles.d.xml doc: typographical improvements and choice of words 2014-06-28 00:06:31 -04:00
udev.xml man: split out systemd.link(5) from udev(7) 2014-02-25 17:04:13 +01:00
udevadm.xml udev: remove seqnum API and all assumptions about seqnums 2014-04-13 17:12:14 -07:00
user-system-options.xml man: document that systemctl's -H may now be used to connect directly to a container on a remote host 2014-07-03 20:37:10 +02:00
vconsole.conf.xml man: add various filenames to the index 2013-05-03 01:00:42 -04:00