summaryrefslogtreecommitdiffstats
path: root/etc/os-net-config/samples
diff options
context:
space:
mode:
Diffstat (limited to 'etc/os-net-config/samples')
-rw-r--r--etc/os-net-config/samples/bond.json19
-rw-r--r--etc/os-net-config/samples/bridge_dhcp.json14
-rw-r--r--etc/os-net-config/samples/bridge_vlan.json21
3 files changed, 54 insertions, 0 deletions
diff --git a/etc/os-net-config/samples/bond.json b/etc/os-net-config/samples/bond.json
new file mode 100644
index 0000000..b21b2d9
--- /dev/null
+++ b/etc/os-net-config/samples/bond.json
@@ -0,0 +1,19 @@
+{ "network_config": [
+ {
+ "type": "ovs_bridge",
+ "name": "br-ctlplane",
+ "use_dhcp": "true",
+ "members": [
+ {
+ "type": "ovs_bond",
+ "name": "bond1",
+ "use_dhcp": "true",
+ "members": [
+ { "type": "interface", "name": "em1" },
+ { "type": "interface", "name": "em2" }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/etc/os-net-config/samples/bridge_dhcp.json b/etc/os-net-config/samples/bridge_dhcp.json
new file mode 100644
index 0000000..8fda908
--- /dev/null
+++ b/etc/os-net-config/samples/bridge_dhcp.json
@@ -0,0 +1,14 @@
+{ "network_config": [
+ {
+ "type": "ovs_bridge",
+ "name": "br-ctlplane",
+ "use_dhcp": "true",
+ "members": [
+ {
+ "type": "interface",
+ "name": "em1"
+ }
+ ]
+ }
+ ]
+}
diff --git a/etc/os-net-config/samples/bridge_vlan.json b/etc/os-net-config/samples/bridge_vlan.json
new file mode 100644
index 0000000..6a6480c
--- /dev/null
+++ b/etc/os-net-config/samples/bridge_vlan.json
@@ -0,0 +1,21 @@
+{ "network_config": [
+ {
+ "type": "ovs_bridge",
+ "name": "br-ctlplane",
+ "members": [
+ {
+ "type": "vlan",
+ "device": "em1",
+ "vlan_id": "16",
+ "addresses": [{
+ "ip_netmask": "192.0.2.1/24"
+ }],
+ "routes": [{
+ "next_hop": "192.0.2.1",
+ "ip_netmask": "192.0.2.1/24"
+ }]
+ }
+ ]
+ }
+ ]
+}