d892289f2a40675763a355f32f8488d464f1b8bd
[apex.git] / config / network / network_settings_vlans.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.
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                                      # Cannot overlap with overcloud_ip_range or introspection_range.
80     nic_mapping:                     # Mapping of network configuration for Overcloud Nodes
81       compute:                       # Mapping for compute profile (nodes that will be used as Compute nodes)
82         phys_type: interface         # Physical interface type (interface or bond)
83         members:                     # Physical NIC members of this mapping (Single value allowed for interface phys_type)
84           - nic1
85       controller:                    # Mapping for controller profile (nodes that will be used as Controller nodes)
86         phys_type: interface
87         members:
88           - nic1
89                                      #
90   tenant:                            # Tenant network configuration
91     enabled: true
92     cidr: 11.0.0.0/24                # Subnet in CIDR format 192.168.1.0/24
93     mtu: 1500                        # Tenant network MTU
94     overlay_id_range: 2,65535        # Tenant network Overlay segmentation ID range:
95                                      # VNI, VLAN-ID, etc.
96     segmentation_type: vxlan         # Tenant network segmentation type:
97                                      # vlan, vxlan, gre
98     nic_mapping:                     # Mapping of network configuration for Overcloud Nodes
99       compute:                       # Mapping for compute profile (nodes that will be used as Compute nodes)
100         phys_type: interface         # Physical interface type (interface or bond)
101         vlan: 401                    # VLAN tag to use with this NIC
102         members:                     # Physical NIC members of this mapping (Single value allowed for interface phys_type)
103           - nic1                     # 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: 401
107         members:
108           - nic1                     # 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: 501
117         members:
118           - em1                      # Member Interface to bridge to for installer VM (use multiple values for bond)
119         ip: 192.168.37.12            # 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 on the public network, usually this is a shared subnet
128       nic_mapping:                   # Mapping of network configuration for Overcloud Nodes
129         compute:                     # Mapping for compute profile (nodes that will be used as Compute nodes)
130           phys_type: interface       # Physical interface type (interface or bond)
131           vlan: 501                  # VLAN tag to use with this NIC
132           members:                   # Physical NIC members of this mapping (Single value allowed for interface phys_type)
133             - nic1
134         controller:                  # Mapping for controller profile (nodes that will be used as Controller nodes)
135           phys_type: interface
136           vlan: 501
137           members:
138             - nic1
139       external_overlay:              # External network to be created in OpenStack by Services tenant
140           name: Public_internet
141           type: flat
142           gateway: 192.168.37.1
143     - private_cloud:                 # another external network
144       enabled: false
145       mtu: 1500
146       installer_vm:                  # Network settings for the Installer VM on admin network (note only valid on 'public' external network)
147         nic_type: interface          # Indicates if this VM will be bridged to an interface, or to a bond
148         vlan: 501
149         members:
150           - em1                      # Member Interface to bridge to for installer VM (use multiple values for bond)
151         ip: 192.168.38.12            # IP to assign to Installer VM on this network
152       cidr: 192.168.38.0/24
153       gateway: 192.168.38.1
154       floating_ip_range:
155         - 192.168.38.200
156         - 192.168.38.220             # Range to allocate to floating IPs for the public network with Neutron
157       overcloud_ip_range:
158         - 192.168.38.10
159         - 192.168.38.199             # Usable ip range for the overcloud node IPs (including VIPs) and last IP will be used for host
160                                      # bridge (i.e. br-public). If empty entire range is usable.
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: 502                  # VLAN tag to use with this NIC
166           members:                   # Physical NIC members of this mapping (Single value allowed for interface phys_type)
167             - eth1                   # 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: 502
171           members:
172             - eth1
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: 201                    # VLAN tag to use with this NIC
187         members:                     # Physical NIC members of this mapping (Single value allowed for interface phys_type)
188           - nic4                     # 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: 201
192         members:
193           - nic4
194                                      #
195   api:                               # API network configuration
196     enabled: false
197     cidr: fd00:fd00:fd00:4000::/64   # Subnet in CIDR format
198     mtu: 1500                        # Api network MTU
199     nic_mapping:                     # Mapping of network configuration for Overcloud Nodes
200       compute:                       # Mapping for compute profile (nodes that will be used as Compute nodes)
201         phys_type: interface         # Physical interface type (interface or bond)
202         vlan: 101                    # VLAN tag to use with this NIC
203         members:                     # Physical NIC members of this mapping (Single value allowed for interface phys_type)
204           - nic5                     # Note, for Apex you may also use the logical nic name (found by nic order), such as "nic1"
205       controller:                    # Mapping for controller profile (nodes that will be used as Controller nodes)
206         phys_type: interface
207         vlan: 101
208         members:
209           - nic5
210
211 # Apex specific settings
212 apex:
213   networks:
214     admin:
215       introspection_range:
216         - 192.0.2.100
217         - 192.0.2.120                # Range used for introspection phase (examining nodes).  This cannot overlap with dhcp_range or overcloud_ip_range.
218                                      # If the external network 'public' is disabled, then this range will be re-used to configure the floating ip range
219                                      # for the overcloud default external network