Fixes OVS DPDK scenarios
[apex.git] / config / network / network_settings.yaml
1 # This configuration file defines Network Environment for a
2 # Baremetal Deployment of OPNFV. It contains default values
3 # for 5 following networks:
4 #
5 # - admin
6 # - tenant*
7 # - external*
8 # - storage*
9 # - api*
10 # *) optional networks
11 #
12 # Optional networks will be consolidated with the admin network
13 # if not explicitly configured.
14 #
15 # See short description of the networks in the comments below.
16 #
17 # "admin" is the short name for Control Plane Network.
18 # This network should be IPv4 even it is an IPv6 deployment
19 # IPv6 does not have PXE boot support.
20 # During OPNFV deployment it is used for node provisioning which will require
21 # PXE booting as well as running a DHCP server on this network.  Be sure to
22 # disable any other DHCP/TFTP server on this network.
23 #
24 # "tenant" is the network used for tenant traffic.
25 #
26 # "external" is the network which should have internet or external
27 # connectivity.  External OpenStack networks will be configured to egress this
28 # network.  There can be multiple external networks, but only one assigned as
29 # "public" which OpenStack public API's will register.
30 #
31 # "storage" is the network for storage I/O.
32 #
33 # "api" is an optional network for splitting out OpenStack service API
34 # communication.  This should be used for IPv6 deployments.
35
36
37 #Meta data for the network configuration
38 network-config-metadata:
39   title: LF-POD-1 Network config
40   version: 0.1
41   created: Mon Dec 28 2015
42   comment: None
43
44 # DNS Settings
45 dns-domain: opnfvlf.org
46 dns-search: opnfvlf.org
47 dns_nameservers:
48   - 8.8.8.8
49   - 8.8.4.4
50 # NTP servers
51 ntp:
52   - 0.se.pool.ntp.org
53   - 1.se.pool.ntp.org
54 # Syslog server
55 syslog:
56   server: 10.128.1.24
57   transport: 'tcp'
58
59 # Common network settings
60 networks:                            # Network configurations
61   admin:                             # Admin configuration (pxe and jumpstart),
62     enabled: true
63     installer_vm:                    # Network settings for the Installer VM on admin network
64       nic_type: interface            # Indicates if this VM will be bridged to an interface, or to a bond
65       members:
66         - em1                        # Member Interface to bridge to for installer VM (use multiple values for bond)
67       vlan: native                   # VLAN tag to use for this network on Installer VM, native means none
68       ip: 192.0.2.1                  # IP to assign to Installer VM on this network
69     overcloud_ip_range:
70       - 192.0.2.11
71       - 192.0.2.99                   # Usable ip range for the overcloud node IPs (including VIPs) and last IP will be
72                                      # used for host bridge (i.e. br-admin). If empty entire range is usable.
73                                      # Cannot overlap with dhcp_range or introspection_range.
74     gateway: 192.0.2.1               # Gateway (only needed when public_network is disabled)
75     cidr: 192.0.2.0/24               # Subnet in CIDR format 192.168.1.0/24
76     dhcp_range:
77       - 192.0.2.2
78       - 192.0.2.10                   # DHCP range for the admin network, if empty it will be automatically provisioned
79     nic_mapping:                     # Mapping of network configuration for Overcloud Nodes
80       compute:                       # Mapping for compute profile (nodes that will be used as Compute nodes)
81         phys_type: interface         # Physical interface type (interface or bond)
82         members:                     # Physical NIC members of this mapping (Single value allowed for interface phys_type)
83           - eth0
84       controller:                    # Mapping for controller profile (nodes that will be used as Controller nodes)
85         phys_type: interface
86         members:
87           - eth0
88                                      #
89   tenant:                            # Tenant network configuration
90     enabled: true
91     cidr: 11.0.0.0/24                # Subnet in CIDR format 192.168.1.0/24
92     mtu: 1500                        # Tenant network MTU
93     overlay_id_range: 2,65535        # Tenant network Overlay segmentation ID range:
94                                      # VNI, VLAN-ID, etc.
95     segmentation_type: vxlan         # Tenant network segmentation type:
96                                      # vlan, vxlan, gre
97     nic_mapping:                     # Mapping of network configuration for Overcloud Nodes
98       compute:                       # Mapping for compute profile (nodes that will be used as Compute nodes)
99         phys_type: interface         # Physical interface type (interface or bond)
100         uio_driver: uio_pci_generic  # UIO driver to use for DPDK scenarios.  The value is ignored for non-DPDK scenarios.
101         vlan: native                 # VLAN tag to use with this NIC
102         members:                     # Physical NIC members of this mapping (Single value allowed for interface phys_type)
103           - eth1                     # Note, for Apex you may also use the logical nic name (found by nic order), such as "nic1"
104       controller:                    # Mapping for controller profile (nodes that will be used as Controller nodes)
105         phys_type: interface
106         vlan: native
107         members:
108           - eth1                     # Note, for Apex you may also use the logical nic name (found by nic order), such as "nic1"
109                                      #
110   external:                          # Can contain 1 or more external networks
111     - public:                        # "public" network will be the network the installer VM attaches to
112       enabled: true
113       mtu: 1500                      # Public network MTU
114       installer_vm:                  # Network settings for the Installer VM on admin network (note only valid on 'public' external network)
115         nic_type: interface          # Indicates if this VM will be bridged to an interface, or to a bond
116         vlan: native
117         members:
118           - em1                      # Member Interface to bridge to for installer VM (use multiple values for bond)
119         ip: 192.168.37.1             # IP to assign to Installer VM on this network
120       cidr: 192.168.37.0/24
121       gateway: 192.168.37.1
122       floating_ip_range:
123         - 192.168.37.200
124         - 192.168.37.220             # Range to allocate to floating IPs for the public network with Neutron
125       overcloud_ip_range:
126         - 192.168.37.10
127         - 192.168.37.199             # Usable ip range for the overcloud node IPs (including VIPs) and last IP will be used for host
128                                      # bridge (i.e. br-public). If empty entire range is usable.  Cannot overlap with dhcp_range or introspection_range.
129       nic_mapping:                   # Mapping of network configuration for Overcloud Nodes
130         compute:                     # Mapping for compute profile (nodes that will be used as Compute nodes)
131           phys_type: interface       # Physical interface type (interface or bond)
132           vlan: native               # VLAN tag to use with this NIC
133           members:                   # Physical NIC members of this mapping (Single value allowed for interface phys_type)
134             - eth2
135         controller:                  # Mapping for controller profile (nodes that will be used as Controller nodes)
136           phys_type: interface
137           vlan: native
138           members:
139             - eth2
140       external_overlay:              # External network to be created in OpenStack by Services tenant
141           name: Public_internet
142           type: flat
143           gateway: 192.168.37.1
144     - private_cloud:                 # another external network
145       enabled: false
146       mtu: 1500
147       installer_vm:                  # Network settings for the Installer VM on admin network (note only valid on 'public' external network)
148         nic_type: interface          # Indicates if this VM will be bridged to an interface, or to a bond
149         vlan: 101
150         members:
151           - em1                      # Member Interface to bridge to for installer VM (use multiple values for bond)
152         ip: 192.168.38.1             # IP to assign to Installer VM on this network
153       cidr: 192.168.38.0/24
154       gateway: 192.168.38.1
155       floating_ip_range:
156         - 192.168.38.200
157         - 192.168.38.220             # Range to allocate to floating IPs for the public network with Neutron
158       overcloud_ip_range:
159         - 192.168.38.10
160         - 192.168.38.199             # Usable IP range for overcloud nodes (including VIPs), usually this is a shared subnet.
161                                      # Cannot overlap with dhcp_range or introspection_range.
162       nic_mapping:                   # Mapping of network configuration for Overcloud Nodes
163         compute:                     # Mapping for compute profile (nodes that will be used as Compute nodes)
164           phys_type: interface       # Physical interface type (interface or bond)
165           vlan: 101                  # VLAN tag to use with this NIC
166           members:                   # Physical NIC members of this mapping (Single value allowed for interface phys_type)
167             - eth2                   # Note, for Apex you may also use the logical nic name (found by nic order), such as "nic1"
168         controller:                  # Mapping for controller profile (nodes that will be used as Controller nodes)
169           phys_type: interface
170           vlan: 101
171           members:
172             - eth2
173       external_overlay:              # External network to be created in OpenStack by Services tenant
174           name: private_cloud
175           type: vlan
176           segmentation_id: 101
177           gateway: 192.168.38.1
178                                      #
179   storage:                           # Storage network configuration
180     enabled: true
181     cidr: 12.0.0.0/24                # Subnet in CIDR format
182     mtu: 1500                        # Storage network MTU
183     nic_mapping:                     # Mapping of network configuration for Overcloud Nodes
184       compute:                       # Mapping for compute profile (nodes that will be used as Compute nodes)
185         phys_type: interface         # Physical interface type (interface or bond)
186         vlan: native                 # VLAN tag to use with this NIC
187         members:                     # Physical NIC members of this mapping (Single value allowed for interface phys_type)
188           - eth3                     # Note, for Apex you may also use the logical nic name (found by nic order), such as "nic1"
189       controller:                    # Mapping for controller profile (nodes that will be used as Controller nodes)
190         phys_type: interface
191         vlan: native
192         members:
193           - eth3
194                                      #
195   api:                               # API network configuration
196     enabled: false
197     cidr: fd00:fd00:fd00:4000::/64   # Subnet in CIDR format
198     vlan: 13                         # VLAN tag to use for Overcloud hosts on this network
199     mtu: 1500                        # Api network MTU
200     nic_mapping:                     # Mapping of network configuration for Overcloud Nodes
201       compute:                       # Mapping for compute profile (nodes that will be used as Compute nodes)
202         phys_type: interface         # Physical interface type (interface or bond)
203         vlan: native                 # VLAN tag to use with this NIC
204         members:                     # Physical NIC members of this mapping (Single value allowed for interface phys_type)
205           - eth4                     # Note, for Apex you may also use the logical nic name (found by nic order), such as "nic1"
206       controller:                    # Mapping for controller profile (nodes that will be used as Controller nodes)
207         phys_type: interface
208         vlan: native
209         members:
210           - eth4
211
212 # Apex specific settings
213 apex:
214   networks:
215     admin:
216       introspection_range:
217         - 192.0.2.100
218         - 192.0.2.120                # Range used for introspection phase (examining nodes).  This cannot overlap with dhcp_range or overcloud_ip_range.
219                                      # If the external network 'public' is disabled, then this range will be re-used to configure the floating ip range
220                                      # for the overcloud default external network