···
563
-
networking.bonds = mkOption {
565
-
example = literalExample {
567
-
interfaces = [ "eth0" "wlan0" ];
565
+
driverOptionsExample = {
571
-
fatpipe.interfaces = [ "enp4s0f0" "enp4s0f1" "enp5s0f0" "enp5s0f1" ];
574
-
This option allows you to define bond devices that aggregate multiple,
575
-
underlying networking interfaces together. The value of this option is
576
-
an attribute set. Each attribute specifies a bond, with the attribute
577
-
name specifying the name of the bond's network interface
571
+
example = literalExample {
573
+
interfaces = [ "eth0" "wlan0" ];
574
+
driverOptions = driverOptionsExample;
576
+
anotherBond.interfaces = [ "enp4s0f0" "enp4s0f1" "enp5s0f0" "enp5s0f1" ];
579
+
This option allows you to define bond devices that aggregate multiple,
580
+
underlying networking interfaces together. The value of this option is
581
+
an attribute set. Each attribute specifies a bond, with the attribute
582
+
name specifying the name of the bond's network interface
580
-
type = with types; attrsOf (submodule {
585
+
type = with types; attrsOf (submodule {
584
-
interfaces = mkOption {
585
-
example = [ "enp4s0f0" "enp4s0f1" "wlan0" ];
586
-
type = types.listOf types.str;
587
-
description = "The interfaces to bond together";
589
+
interfaces = mkOption {
590
+
example = [ "enp4s0f0" "enp4s0f1" "wlan0" ];
591
+
type = types.listOf types.str;
592
+
description = "The interfaces to bond together";
595
+
driverOptions = mkOption {
596
+
type = types.attrsOf types.str;
598
+
example = literalExample driverOptionsExample;
600
+
Options for the bonding driver.
601
+
Documentation can be found in
602
+
<link xlink:href="https://www.kernel.org/doc/Documentation/networking/bonding.txt" />
590
-
driverOptions = mkOption {
591
-
type = types.attrsOf types.str;
593
-
example = literalExample {
594
-
interfaces = [ "eth0" "wlan0" ];
596
-
mode = "active-backup";
599
-
Options for the bonding driver.
600
-
Documentation can be found in
601
-
<link xlink:href="https://www.kernel.org/doc/Documentation/networking/bonding.txt" />
607
+
lacp_rate = mkOption {
610
+
type = types.nullOr types.str;
612
+
DEPRECATED, use `driverOptions`.
613
+
Option specifying the rate in which we'll ask our link partner
614
+
to transmit LACPDU packets in 802.3ad mode.
606
-
lacp_rate = mkOption {
609
-
type = types.nullOr types.str;
611
-
DEPRECATED, use `driverOptions`.
612
-
Option specifying the rate in which we'll ask our link partner
613
-
to transmit LACPDU packets in 802.3ad mode.
618
+
miimon = mkOption {
621
+
type = types.nullOr types.int;
623
+
DEPRECATED, use `driverOptions`.
624
+
Miimon is the number of millisecond in between each round of polling
625
+
by the device driver for failed links. By default polling is not
626
+
enabled and the driver is trusted to properly detect and handle
617
-
miimon = mkOption {
620
-
type = types.nullOr types.int;
622
-
DEPRECATED, use `driverOptions`.
623
-
Miimon is the number of millisecond in between each round of polling
624
-
by the device driver for failed links. By default polling is not
625
-
enabled and the driver is trusted to properly detect and handle
633
+
example = "active-backup";
634
+
type = types.nullOr types.str;
636
+
DEPRECATED, use `driverOptions`.
637
+
The mode which the bond will be running. The default mode for
638
+
the bonding driver is balance-rr, optimizing for throughput.
639
+
More information about valid modes can be found at
640
+
https://www.kernel.org/doc/Documentation/networking/bonding.txt
632
-
example = "active-backup";
633
-
type = types.nullOr types.str;
635
-
DEPRECATED, use `driverOptions`.
636
-
The mode which the bond will be running. The default mode for
637
-
the bonding driver is balance-rr, optimizing for throughput.
638
-
More information about valid modes can be found at
639
-
https://www.kernel.org/doc/Documentation/networking/bonding.txt
644
+
xmit_hash_policy = mkOption {
646
+
example = "layer2+3";
647
+
type = types.nullOr types.str;
649
+
DEPRECATED, use `driverOptions`.
650
+
Selects the transmit hash policy to use for slave selection in
651
+
balance-xor, 802.3ad, and tlb modes.
643
-
xmit_hash_policy = mkOption {
645
-
example = "layer2+3";
646
-
type = types.nullOr types.str;
648
-
DEPRECATED, use `driverOptions`.
649
-
Selects the transmit hash policy to use for slave selection in
650
-
balance-xor, 802.3ad, and tlb modes.
networking.macvlans = mkOption {