diff options
Diffstat (limited to 'etc/os-net-config')
-rw-r--r-- | etc/os-net-config/samples/ib_interface.json | 26 | ||||
-rw-r--r-- | etc/os-net-config/samples/ib_interface.yaml | 18 | ||||
-rw-r--r-- | etc/os-net-config/samples/mapping_mnemonic.yaml | 8 | ||||
-rw-r--r-- | etc/os-net-config/samples/nfvswitch.json | 38 | ||||
-rw-r--r-- | etc/os-net-config/samples/nfvswitch.yaml | 25 | ||||
-rw-r--r-- | etc/os-net-config/samples/team.json | 13 | ||||
-rw-r--r-- | etc/os-net-config/samples/team.yaml | 18 |
7 files changed, 146 insertions, 0 deletions
diff --git a/etc/os-net-config/samples/ib_interface.json b/etc/os-net-config/samples/ib_interface.json new file mode 100644 index 0000000..4e42867 --- /dev/null +++ b/etc/os-net-config/samples/ib_interface.json @@ -0,0 +1,26 @@ +{"network_config": [ + { + "type": "ib_interface", + "name": "ib0", + "use_dhcp": false, + "addresses": [ + { + "ip_netmask": "192.0.2.1/24" + } + ], + "routes": [ + { + "ip_netmask": "0.0.0.0/0", + "next_hop": "192.0.2.254", + "default": "true" + } + ] + }, + { + "type": "ib_interface", + "name": "ib1", + "use_dhcp": true, + "defroute": no + } + ] +} diff --git a/etc/os-net-config/samples/ib_interface.yaml b/etc/os-net-config/samples/ib_interface.yaml new file mode 100644 index 0000000..f930471 --- /dev/null +++ b/etc/os-net-config/samples/ib_interface.yaml @@ -0,0 +1,18 @@ +network_config: + - + type: ib_interface + name: ib0 + use_dhcp: false + addresses: + - + ip_netmask: 192.0.2.1/24 + routes: + - + ip_netmask: 0.0.0.0/0 + next_hop: 192.0.2.254 + default: true + - + type: interface + name: ib1 + use_dhcp: true + defroute: no
\ No newline at end of file diff --git a/etc/os-net-config/samples/mapping_mnemonic.yaml b/etc/os-net-config/samples/mapping_mnemonic.yaml new file mode 100644 index 0000000..10f31de --- /dev/null +++ b/etc/os-net-config/samples/mapping_mnemonic.yaml @@ -0,0 +1,8 @@ +# See the mapping.yaml sample for an overview of the mapping functionality. +# This shows the use of mnemonic aliases instead of the default nicN aliases +# in configs. It can be used with the -m option to override the default +# mapping of the nicN aliases. +interface_mapping: + provision: em1 + bond0p1: em2 + bond0p2: 12:34:56:de:f0:12 diff --git a/etc/os-net-config/samples/nfvswitch.json b/etc/os-net-config/samples/nfvswitch.json new file mode 100644 index 0000000..2d8af8a --- /dev/null +++ b/etc/os-net-config/samples/nfvswitch.json @@ -0,0 +1,38 @@ +{ + "network_config": [ + { + "type": "nfvswitch_bridge", + "cpus": "2,3,4,5", + "members": [ + { + "type": "interface", + "name": "nic2", + }, + { + "type": "interface", + "name": "nic3" + }, + { + "type": "nfvswitch_internal", + "name": "api", + "addresses": [ + { + "ip_netmask": "172.16.2.7/24" + } + ], + "vlan_id": 201 + }, + { + "type": "nfvswitch_internal", + "name": "storage", + "addresses": [ + { + "ip_netmask": "172.16.1.6/24" + } + ], + "vlan_id": 202 + } + ] + } + ] +} diff --git a/etc/os-net-config/samples/nfvswitch.yaml b/etc/os-net-config/samples/nfvswitch.yaml new file mode 100644 index 0000000..5af3f70 --- /dev/null +++ b/etc/os-net-config/samples/nfvswitch.yaml @@ -0,0 +1,25 @@ +network_config: + - + type: nfvswitch_bridge + cpus: "2,3,4,5" + members: + - + type: interface + name: nic2 + - + type: interface + name: nic3 + - + type: nfvswitch_internal + name: api + vlan_id: 201 + addresses: + - + ip_netmask: 172.16.2.7/24 + - + type: nfvswitch_internal + name: storage + vlan_id: 202 + addresses: + - + ip_netmask: 172.16.1.6/24
\ No newline at end of file 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 |