@@ -9,11 +9,6 @@ An array of interfaces, where each interface has the following options:
...
@@ -9,11 +9,6 @@ An array of interfaces, where each interface has the following options:
The state of the interface, may be ```UP``` or ```DOWN```, defaults to ```UP```
The state of the interface, may be ```UP``` or ```DOWN```, defaults to ```UP```
- mtu:
- mtu:
The MTU of the interface, defaults to ```1500```
The MTU of the interface, defaults to ```1500```
- vlans:
An array of dictionaries like interfaces, but with the following exceptions:
- We do not (yet) support Q-in-Q, so ```vlans``` is not accepted
- The value ```vlanid``` is an integer for the vlan id.
- The value ```name``` is the name of the interface, defaults to ```parent.vlanid```
- ratelimit:
- ratelimit:
Or a single float-value where this value is the ratelimit in bit/s, or a ```in``` value and/or ```out``` value, to differentiate between incoming and outgoing ratelimits. Optionally a unit can be added (KMG).
Or a single float-value where this value is the ratelimit in bit/s, or a ```in``` value and/or ```out``` value, to differentiate between incoming and outgoing ratelimits. Optionally a unit can be added (KMG).
- slaves:
- slaves:
...
@@ -25,6 +20,9 @@ An array of interfaces, where each interface has the following options:
...
@@ -25,6 +20,9 @@ An array of interfaces, where each interface has the following options:
- slave
- slave
- vlan
- vlan
- loopback
- loopback
- For vlan interfaces, set the following options:
- The value ```vlanid``` is an integer for the vlan id.
- The value ```parent``` is the name of the parent interface
- For bond interfaces, set the following options:
- For bond interfaces, set the following options:
- bond-mode, the bond-mode you want to use. See (this documentation)[https://www.kernel.org/doc/Documentation/networking/bonding.txt] for more information.
- bond-mode, the bond-mode you want to use. See (this documentation)[https://www.kernel.org/doc/Documentation/networking/bonding.txt] for more information.
- balance-rr
- balance-rr
...
@@ -66,14 +64,14 @@ A vlan interface on eth0
...
@@ -66,14 +64,14 @@ A vlan interface on eth0
eth0:
eth0:
adminstate: UP
adminstate: UP
mtu: 1500
mtu: 1500
vlans:
foobar:
- adminstate: UP
adminstate: UP
addresses:
addresses:
- 192.168.1.4/24
- 192.168.1.4/24
- fd00::192:168:1:4/64
- fd00::192:168:1:4/64
mtu: 1500
mtu: 1500
name: foobar
vlanid: 200
vlanid: 200
parent: eth0
lo:
lo:
addresses:
addresses:
- 127.0.0.1/8
- 127.0.0.1/8
...
@@ -120,4 +118,4 @@ Create a bond-interface with two slaves
...
@@ -120,4 +118,4 @@ Create a bond-interface with two slaves