aboutsummaryrefslogtreecommitdiffstats
path: root/etc/os-net-config
diff options
context:
space:
mode:
Diffstat (limited to 'etc/os-net-config')
-rw-r--r--etc/os-net-config/samples/team.json13
-rw-r--r--etc/os-net-config/samples/team.yaml18
2 files changed, 31 insertions, 0 deletions
diff --git a/etc/os-net-config/samples/team.json b/etc/os-net-config/samples/team.json
new file mode 100644
index 0000000..4524b3c
--- /dev/null
+++ b/etc/os-net-config/samples/team.json
@@ -0,0 +1,13 @@
+{ "network_config": [
+ {
+ "type": "team",
+ "name": "team1",
+ "use_dhcp": true,
+ "bonding_options": "{\"runner\": {\"name\": \"activebackup\"}}",
+ "members": [
+ { "type": "interface", "name": "em1", "primary": true },
+ { "type": "interface", "name": "em2" }
+ ]
+ }
+ ]
+}
diff --git a/etc/os-net-config/samples/team.yaml b/etc/os-net-config/samples/team.yaml
new file mode 100644
index 0000000..3770de0
--- /dev/null
+++ b/etc/os-net-config/samples/team.yaml
@@ -0,0 +1,18 @@
+# Config for bonding with teamd. Bonding options are provided as a JSON
+# string. The following runners are available in teamd: broadcast,
+# roundrobin, activebackup, loadbalance, and lacp.
+# Please see the teamd.conf(5) man page for more information.
+network_config:
+ -
+ type: team
+ name: team1
+ use_dhcp: true
+ bonding_options: '{"runner": {"name": "activebackup"}}'
+ members:
+ -
+ type: interface
+ name: em1
+ primary: true
+ -
+ type: interface
+ name: em2