ypconfig reads a yaml-file (defaults to /etc/ypconfig/interfaces.yml). The configfile has the following syntax:
ypconfig reads a yaml-file (defaults to /etc/ypconfig/interfaces.yml) and tries to configure the system accordingly. The configfile has the following syntax:
An array of interfaces, where each interface has the following options:
- description:
A description we can read via snmpd
- addresses:
An array of addresses in the syntax address/prefixlen
- adminstate:
...
...
@@ -13,7 +15,9 @@ An array of interfaces, where each interface has the following options:
- The value ```vlanid``` is an integer for the vlan id.
- The value ```name``` is the name of the interface, defaults to ```parent.vlanid```
- ratelimit:
Or a single float-value where this value is the ratelimit in mbit/s, or a ```in``` value and/or ```out``` value, to differentiate between incoming and outgoing ratelimits.
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:
An array with interfaces you want to bond into this interface.
EXAMPLE 1
...
...
@@ -74,10 +78,25 @@ Two interfaces, eth0 with jumbo frames and eth1 with a ratelimit of 10mbit up an