Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 1 | =============== |
| 2 | Neutron Formula |
| 3 | =============== |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 4 | |
Jakub Pavlik | 9ecf026 | 2016-05-20 11:20:58 +0200 | [diff] [blame] | 5 | Neutron is an OpenStack project to provide "networking as a service" between |
| 6 | interface devices (e.g., vNICs) managed by other Openstack services (e.g., |
| 7 | nova). |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 8 | |
Jakub Pavlik | 9ecf026 | 2016-05-20 11:20:58 +0200 | [diff] [blame] | 9 | Starting in the Folsom release, Neutron is a core and supported part of the |
| 10 | OpenStack platform (for Essex, we were an "incubated" project, which means use |
| 11 | is suggested only for those who really know what they're doing with Neutron). |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 12 | |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 13 | Sample Pillars |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 14 | ============== |
| 15 | |
| 16 | Neutron Server on the controller node |
| 17 | |
| 18 | .. code-block:: yaml |
| 19 | |
| 20 | neutron: |
| 21 | server: |
| 22 | enabled: true |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 23 | version: mitaka |
Swann Croiset | 9407daf | 2017-02-02 15:27:56 +0100 | [diff] [blame] | 24 | allow_pagination: true |
| 25 | pagination_max_limit: 100 |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 26 | bind: |
| 27 | address: 172.20.0.1 |
| 28 | port: 9696 |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 29 | database: |
| 30 | engine: mysql |
| 31 | host: 127.0.0.1 |
| 32 | port: 3306 |
| 33 | name: neutron |
| 34 | user: neutron |
| 35 | password: pwd |
| 36 | identity: |
| 37 | engine: keystone |
| 38 | host: 127.0.0.1 |
| 39 | port: 35357 |
| 40 | user: neutron |
| 41 | password: pwd |
| 42 | tenant: service |
Dennis Dmitriev | 3711472 | 2017-03-06 16:52:26 +0200 | [diff] [blame] | 43 | endpoint_type: internal |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 44 | message_queue: |
| 45 | engine: rabbitmq |
| 46 | host: 127.0.0.1 |
| 47 | port: 5672 |
| 48 | user: openstack |
| 49 | password: pwd |
| 50 | virtual_host: '/openstack' |
| 51 | metadata: |
| 52 | host: 127.0.0.1 |
| 53 | port: 8775 |
| 54 | password: pass |
Petr Michalec | 61f7ab2 | 2016-11-29 16:29:09 +0100 | [diff] [blame] | 55 | audit: |
| 56 | enabled: false |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 57 | |
Swann Croiset | 9407daf | 2017-02-02 15:27:56 +0100 | [diff] [blame] | 58 | Note: The pagination is useful to retrieve a large bunch of resources, |
| 59 | because a single request may fail (timeout). This is enabled with both |
| 60 | parameters *allow_pagination* and *pagination_max_limit* as shown above. |
| 61 | |
Ondrej Smola | 314eee2 | 2017-03-08 21:21:16 +0100 | [diff] [blame] | 62 | Neutron lbaas provides on the controller node |
| 63 | |
| 64 | .. code-block:: yaml |
| 65 | |
| 66 | neutron: |
| 67 | server: |
| 68 | lbaas: |
| 69 | enabled: true |
| 70 | providers: |
| 71 | avi_adc: |
| 72 | enabled: true |
| 73 | engine: avinetworks |
| 74 | controller_address: 10.182.129.239 |
| 75 | controller_user: admin |
| 76 | controller_password: Cloudlab2016 |
| 77 | controller_cloud_name: Default-Cloud |
| 78 | avi_adc2: |
| 79 | engine: avinetworks |
| 80 | ... |
| 81 | |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 82 | Note: If you want contrail lbaas then backend is only required. Lbaas in |
| 83 | pillar should be define only if it should be disabled. |
Ondrej Smola | 314eee2 | 2017-03-08 21:21:16 +0100 | [diff] [blame] | 84 | |
| 85 | .. code-block:: yaml |
| 86 | |
| 87 | neutron: |
| 88 | server: |
| 89 | lbaas: |
| 90 | enabled: disabled |
| 91 | |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 92 | Neutron VXLAN tenant networks with Network nodes |
| 93 | ------------------------------------------------ |
Swann Croiset | 9407daf | 2017-02-02 15:27:56 +0100 | [diff] [blame] | 94 | |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 95 | With DVR for East-West and Network node for North-South. |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 96 | |
| 97 | This use case describes a model utilising VxLAN overlay with DVR. The DVR |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 98 | routers will only be utilized for traffic that is router within the cloud |
| 99 | infrastructure and that remains encapsulated. External traffic will be |
| 100 | routed to via the network nodes. |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 101 | |
| 102 | The intention is that each tenant will require at least two (2) vrouters |
| 103 | one to be utilised |
| 104 | |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 105 | Neutron Server |
marco | a4428a3 | 2016-06-10 11:50:16 +0200 | [diff] [blame] | 106 | |
| 107 | .. code-block:: yaml |
| 108 | |
| 109 | neutron: |
| 110 | server: |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 111 | version: mitaka |
| 112 | plugin: ml2 |
| 113 | bind: |
| 114 | address: 172.20.0.1 |
| 115 | port: 9696 |
| 116 | database: |
| 117 | engine: mysql |
| 118 | host: 127.0.0.1 |
| 119 | port: 3306 |
| 120 | name: neutron |
| 121 | user: neutron |
| 122 | password: pwd |
| 123 | identity: |
| 124 | engine: keystone |
| 125 | host: 127.0.0.1 |
| 126 | port: 35357 |
| 127 | user: neutron |
| 128 | password: pwd |
| 129 | tenant: service |
Dennis Dmitriev | 3711472 | 2017-03-06 16:52:26 +0200 | [diff] [blame] | 130 | endpoint_type: internal |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 131 | message_queue: |
| 132 | engine: rabbitmq |
| 133 | host: 127.0.0.1 |
| 134 | port: 5672 |
| 135 | user: openstack |
| 136 | password: pwd |
| 137 | virtual_host: '/openstack' |
| 138 | global_physnet_mtu: 9000 |
| 139 | l3_ha: False # Which type of router will be created by default |
| 140 | dvr: True # disabled for non DVR use case |
| 141 | backend: |
| 142 | engine: ml2 |
| 143 | tenant_network_types: "flat,vxlan" |
| 144 | external_mtu: 9000 |
| 145 | mechanism: |
| 146 | ovs: |
| 147 | driver: openvswitch |
| 148 | |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 149 | Network Node |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 150 | |
| 151 | .. code-block:: yaml |
| 152 | |
| 153 | neutron: |
| 154 | gateway: |
| 155 | enabled: True |
| 156 | version: mitaka |
| 157 | message_queue: |
| 158 | engine: rabbitmq |
| 159 | host: 127.0.0.1 |
| 160 | port: 5672 |
| 161 | user: openstack |
| 162 | password: pwd |
| 163 | virtual_host: '/openstack' |
| 164 | local_ip: 192.168.20.20 # br-mesh ip address |
| 165 | dvr: True # disabled for non DVR use case |
| 166 | agent_mode: dvr_snat |
| 167 | metadata: |
| 168 | host: 127.0.0.1 |
| 169 | password: pass |
| 170 | backend: |
| 171 | engine: ml2 |
| 172 | tenant_network_types: "flat,vxlan" |
| 173 | mechanism: |
| 174 | ovs: |
| 175 | driver: openvswitch |
| 176 | |
| 177 | Compute Node |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 178 | |
| 179 | .. code-block:: yaml |
| 180 | |
| 181 | neutron: |
| 182 | compute: |
| 183 | enabled: True |
| 184 | version: mitaka |
| 185 | message_queue: |
| 186 | engine: rabbitmq |
| 187 | host: 127.0.0.1 |
| 188 | port: 5672 |
| 189 | user: openstack |
| 190 | password: pwd |
| 191 | virtual_host: '/openstack' |
| 192 | local_ip: 192.168.20.20 # br-mesh ip address |
| 193 | dvr: True # disabled for non DVR use case |
| 194 | agent_mode: dvr |
| 195 | external_access: false # Compute node with DVR for east-west only, Network Node has True as default |
| 196 | metadata: |
| 197 | host: 127.0.0.1 |
| 198 | password: pass |
| 199 | backend: |
| 200 | engine: ml2 |
| 201 | tenant_network_types: "flat,vxlan" |
| 202 | mechanism: |
| 203 | ovs: |
| 204 | driver: openvswitch |
Petr Michalec | 61f7ab2 | 2016-11-29 16:29:09 +0100 | [diff] [blame] | 205 | audit: |
| 206 | enabled: false |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 207 | |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 208 | |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 209 | Neutron VXLAN tenant networks with Network Nodes (non DVR) |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 210 | ---------------------------------------------------------- |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 211 | |
| 212 | This section describes a network solution that utilises VxLAN overlay |
| 213 | networks without DVR with all routers being managed on the network nodes. |
| 214 | |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 215 | Neutron Server |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 216 | |
| 217 | .. code-block:: yaml |
| 218 | |
| 219 | neutron: |
| 220 | server: |
| 221 | version: mitaka |
| 222 | plugin: ml2 |
| 223 | bind: |
| 224 | address: 172.20.0.1 |
| 225 | port: 9696 |
| 226 | database: |
| 227 | engine: mysql |
| 228 | host: 127.0.0.1 |
| 229 | port: 3306 |
| 230 | name: neutron |
| 231 | user: neutron |
| 232 | password: pwd |
| 233 | identity: |
| 234 | engine: keystone |
| 235 | host: 127.0.0.1 |
| 236 | port: 35357 |
| 237 | user: neutron |
| 238 | password: pwd |
| 239 | tenant: service |
Dennis Dmitriev | 3711472 | 2017-03-06 16:52:26 +0200 | [diff] [blame] | 240 | endpoint_type: internal |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 241 | message_queue: |
| 242 | engine: rabbitmq |
| 243 | host: 127.0.0.1 |
| 244 | port: 5672 |
| 245 | user: openstack |
| 246 | password: pwd |
| 247 | virtual_host: '/openstack' |
| 248 | global_physnet_mtu: 9000 |
| 249 | l3_ha: True |
| 250 | dvr: False |
| 251 | backend: |
| 252 | engine: ml2 |
| 253 | tenant_network_types= "flat,vxlan" |
| 254 | external_mtu: 9000 |
| 255 | mechanism: |
| 256 | ovs: |
| 257 | driver: openvswitch |
| 258 | |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 259 | Network Node |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 260 | |
| 261 | .. code-block:: yaml |
| 262 | |
| 263 | neutron: |
| 264 | gateway: |
| 265 | enabled: True |
| 266 | version: mitaka |
| 267 | message_queue: |
| 268 | engine: rabbitmq |
| 269 | host: 127.0.0.1 |
| 270 | port: 5672 |
| 271 | user: openstack |
| 272 | password: pwd |
| 273 | virtual_host: '/openstack' |
| 274 | local_ip: 192.168.20.20 # br-mesh ip address |
| 275 | dvr: False |
| 276 | agent_mode: legacy |
Simon Pasquier | c03af11 | 2017-04-10 10:35:14 +0200 | [diff] [blame] | 277 | availability_zone: az1 |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 278 | metadata: |
| 279 | host: 127.0.0.1 |
| 280 | password: pass |
| 281 | backend: |
| 282 | engine: ml2 |
| 283 | tenant_network_types: "flat,vxlan" |
| 284 | mechanism: |
| 285 | ovs: |
| 286 | driver: openvswitch |
| 287 | |
| 288 | Compute Node |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 289 | |
| 290 | .. code-block:: yaml |
| 291 | |
| 292 | neutron: |
| 293 | compute: |
| 294 | enabled: True |
| 295 | version: mitaka |
| 296 | message_queue: |
| 297 | engine: rabbitmq |
| 298 | host: 127.0.0.1 |
| 299 | port: 5672 |
| 300 | user: openstack |
| 301 | password: pwd |
| 302 | virtual_host: '/openstack' |
| 303 | local_ip: 192.168.20.20 # br-mesh ip address |
| 304 | external_access: False |
| 305 | dvr: False |
| 306 | backend: |
| 307 | engine: ml2 |
| 308 | tenant_network_types: "flat,vxlan" |
| 309 | mechanism: |
| 310 | ovs: |
| 311 | driver: openvswitch |
| 312 | |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 313 | Neutron VXLAN tenant networks with Network Nodes with DVR |
| 314 | --------------------------------------------------------- |
| 315 | |
| 316 | With DVR for East-West and North-South, DVR everywhere, Network node for SNAT. |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 317 | |
| 318 | This section describes a network solution that utilises VxLAN |
| 319 | overlay networks with DVR with North-South and East-West. Network |
| 320 | Node is used only for SNAT. |
| 321 | |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 322 | Neutron Server |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 323 | |
| 324 | .. code-block:: yaml |
| 325 | |
| 326 | neutron: |
| 327 | server: |
| 328 | version: mitaka |
| 329 | plugin: ml2 |
| 330 | bind: |
| 331 | address: 172.20.0.1 |
| 332 | port: 9696 |
| 333 | database: |
| 334 | engine: mysql |
| 335 | host: 127.0.0.1 |
| 336 | port: 3306 |
| 337 | name: neutron |
| 338 | user: neutron |
| 339 | password: pwd |
| 340 | identity: |
| 341 | engine: keystone |
| 342 | host: 127.0.0.1 |
| 343 | port: 35357 |
| 344 | user: neutron |
| 345 | password: pwd |
| 346 | tenant: service |
Dennis Dmitriev | 3711472 | 2017-03-06 16:52:26 +0200 | [diff] [blame] | 347 | endpoint_type: internal |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 348 | message_queue: |
| 349 | engine: rabbitmq |
| 350 | host: 127.0.0.1 |
| 351 | port: 5672 |
| 352 | user: openstack |
| 353 | password: pwd |
| 354 | virtual_host: '/openstack' |
| 355 | global_physnet_mtu: 9000 |
| 356 | l3_ha: False |
| 357 | dvr: True |
| 358 | backend: |
| 359 | engine: ml2 |
| 360 | tenant_network_types= "flat,vxlan" |
| 361 | external_mtu: 9000 |
| 362 | mechanism: |
| 363 | ovs: |
| 364 | driver: openvswitch |
| 365 | |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 366 | Network Node |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 367 | |
| 368 | .. code-block:: yaml |
| 369 | |
| 370 | neutron: |
| 371 | gateway: |
| 372 | enabled: True |
| 373 | version: mitaka |
| 374 | message_queue: |
| 375 | engine: rabbitmq |
| 376 | host: 127.0.0.1 |
| 377 | port: 5672 |
| 378 | user: openstack |
| 379 | password: pwd |
| 380 | virtual_host: '/openstack' |
| 381 | local_ip: 192.168.20.20 # br-mesh ip address |
| 382 | dvr: True |
| 383 | agent_mode: dvr_snat |
Simon Pasquier | c03af11 | 2017-04-10 10:35:14 +0200 | [diff] [blame] | 384 | availability_zone: az1 |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 385 | metadata: |
| 386 | host: 127.0.0.1 |
| 387 | password: pass |
| 388 | backend: |
| 389 | engine: ml2 |
| 390 | tenant_network_types: "flat,vxlan" |
| 391 | mechanism: |
| 392 | ovs: |
| 393 | driver: openvswitch |
| 394 | |
| 395 | Compute Node |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 396 | |
| 397 | .. code-block:: yaml |
| 398 | |
| 399 | neutron: |
| 400 | compute: |
| 401 | enabled: True |
| 402 | version: mitaka |
| 403 | message_queue: |
| 404 | engine: rabbitmq |
| 405 | host: 127.0.0.1 |
| 406 | port: 5672 |
| 407 | user: openstack |
| 408 | password: pwd |
| 409 | virtual_host: '/openstack' |
| 410 | local_ip: 192.168.20.20 # br-mesh ip address |
| 411 | dvr: True |
| 412 | external_access: True |
| 413 | agent_mode: dvr |
Simon Pasquier | c03af11 | 2017-04-10 10:35:14 +0200 | [diff] [blame] | 414 | availability_zone: az1 |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 415 | metadata: |
| 416 | host: 127.0.0.1 |
| 417 | password: pass |
| 418 | backend: |
| 419 | engine: ml2 |
| 420 | tenant_network_types: "flat,vxlan" |
| 421 | mechanism: |
| 422 | ovs: |
| 423 | driver: openvswitch |
| 424 | |
| 425 | Sample Linux network configuration for DVR |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 426 | |
| 427 | .. code-block:: yaml |
| 428 | |
| 429 | linux: |
| 430 | network: |
| 431 | bridge: openvswitch |
| 432 | interface: |
| 433 | eth1: |
| 434 | enabled: true |
| 435 | type: eth |
| 436 | mtu: 9000 |
| 437 | proto: manual |
| 438 | eth2: |
| 439 | enabled: true |
| 440 | type: eth |
| 441 | mtu: 9000 |
| 442 | proto: manual |
| 443 | eth3: |
| 444 | enabled: true |
| 445 | type: eth |
| 446 | mtu: 9000 |
| 447 | proto: manual |
| 448 | br-int: |
| 449 | enabled: true |
| 450 | mtu: 9000 |
| 451 | type: ovs_bridge |
| 452 | br-floating: |
| 453 | enabled: true |
| 454 | mtu: 9000 |
| 455 | type: ovs_bridge |
| 456 | float-to-ex: |
| 457 | enabled: true |
| 458 | type: ovs_port |
| 459 | mtu: 65000 |
| 460 | bridge: br-floating |
| 461 | br-mgmt: |
| 462 | enabled: true |
| 463 | type: bridge |
| 464 | mtu: 9000 |
| 465 | address: ${_param:single_address} |
| 466 | netmask: 255.255.255.0 |
| 467 | use_interfaces: |
| 468 | - eth1 |
| 469 | br-mesh: |
| 470 | enabled: true |
| 471 | type: bridge |
| 472 | mtu: 9000 |
| 473 | address: ${_param:tenant_address} |
| 474 | netmask: 255.255.255.0 |
| 475 | use_interfaces: |
| 476 | - eth2 |
| 477 | br-ex: |
| 478 | enabled: true |
| 479 | type: bridge |
| 480 | mtu: 9000 |
| 481 | address: ${_param:external_address} |
| 482 | netmask: 255.255.255.0 |
| 483 | use_interfaces: |
| 484 | - eth3 |
| 485 | use_ovs_ports: |
| 486 | - float-to-ex |
| 487 | |
| 488 | Neutron VLAN tenant networks with Network Nodes |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 489 | ----------------------------------------------- |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 490 | |
| 491 | VLAN tenant provider |
| 492 | |
| 493 | Neutron Server only |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 494 | |
| 495 | .. code-block:: yaml |
| 496 | |
| 497 | neutron: |
| 498 | server: |
| 499 | version: mitaka |
| 500 | plugin: ml2 |
| 501 | ... |
| 502 | global_physnet_mtu: 9000 |
| 503 | l3_ha: False |
| 504 | dvr: True |
| 505 | backend: |
| 506 | engine: ml2 |
| 507 | tenant_network_types: "flat,vlan" # Can be mixed flat,vlan,vxlan |
| 508 | tenant_vlan_range: "1000:2000" |
| 509 | external_vlan_range: "100:200" # Does not have to be defined. |
| 510 | external_mtu: 9000 |
| 511 | mechanism: |
| 512 | ovs: |
| 513 | driver: openvswitch |
| 514 | |
| 515 | Compute node |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 516 | |
| 517 | .. code-block:: yaml |
| 518 | |
| 519 | neutron: |
| 520 | compute: |
| 521 | version: mitaka |
| 522 | plugin: ml2 |
| 523 | ... |
| 524 | dvr: True |
| 525 | agent_mode: dvr |
| 526 | external_access: False |
| 527 | backend: |
| 528 | engine: ml2 |
| 529 | tenant_network_types: "flat,vlan" # Can be mixed flat,vlan,vxlan |
| 530 | mechanism: |
| 531 | ovs: |
| 532 | driver: openvswitch |
| 533 | |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 534 | Advanced Neutron Features (DPDK, SR-IOV) |
| 535 | |
Jakub Pavlik | 8f83ccc | 2017-02-27 11:15:39 +0100 | [diff] [blame] | 536 | Neutron OVS DPDK |
Jakub Pavlik | 8f83ccc | 2017-02-27 11:15:39 +0100 | [diff] [blame] | 537 | |
| 538 | Enable datapath netdev for neutron openvswitch agent |
| 539 | |
| 540 | .. code-block:: yaml |
| 541 | |
| 542 | neutron: |
| 543 | server: |
| 544 | version: mitaka |
| 545 | ... |
| 546 | dpdk: True |
| 547 | ... |
| 548 | |
| 549 | neutron: |
| 550 | compute: |
| 551 | version: mitaka |
| 552 | plugin: ml2 |
| 553 | dpdk: True |
| 554 | backend: |
| 555 | engine: ml2 |
| 556 | ... |
| 557 | mechanism: |
| 558 | ovs: |
| 559 | driver: openvswitch |
| 560 | |
Jakub Pavlik | 70555cb | 2017-02-26 18:48:02 +0100 | [diff] [blame] | 561 | Neutron OVS SR-IOV |
Jakub Pavlik | 70555cb | 2017-02-26 18:48:02 +0100 | [diff] [blame] | 562 | |
| 563 | .. code-block:: yaml |
| 564 | |
| 565 | neutron: |
| 566 | server: |
| 567 | version: mitaka |
| 568 | plugin: ml2 |
| 569 | backend: |
| 570 | engine: ml2 |
| 571 | ... |
| 572 | mechanism: |
| 573 | ovs: |
| 574 | driver: openvswitch |
| 575 | sriov: |
| 576 | driver: sriovnicswitch |
| 577 | |
| 578 | neutron: |
| 579 | compute: |
| 580 | version: mitaka |
| 581 | plugin: ml2 |
| 582 | ... |
| 583 | backend: |
| 584 | engine: ml2 |
| 585 | tenant_network_types: "flat,vlan" # Can be mixed flat,vlan,vxlan |
| 586 | sriov: |
| 587 | nic_one: |
| 588 | devname: eth1 |
| 589 | physical_network: physnet3 |
| 590 | mechanism: |
| 591 | ovs: |
| 592 | driver: openvswitch |
| 593 | |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 594 | Neutron Server |
| 595 | -------------- |
| 596 | |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 597 | Neutron Server with OpenContrail |
Jiri Broulik | 74f6111 | 2016-11-21 20:23:47 +0100 | [diff] [blame] | 598 | |
| 599 | .. code-block:: yaml |
| 600 | |
| 601 | neutron: |
| 602 | server: |
| 603 | plugin: contrail |
marco | a4428a3 | 2016-06-10 11:50:16 +0200 | [diff] [blame] | 604 | backend: |
| 605 | engine: contrail |
| 606 | host: contrail_discovery_host |
| 607 | port: 8082 |
| 608 | user: admin |
| 609 | password: password |
| 610 | tenant: admin |
| 611 | token: token |
| 612 | |
| 613 | Neutron Server with Midonet |
| 614 | |
| 615 | .. code-block:: yaml |
| 616 | |
| 617 | neutron: |
| 618 | server: |
| 619 | backend: |
| 620 | engine: midonet |
| 621 | host: midonet_api_host |
| 622 | port: 8181 |
| 623 | user: admin |
| 624 | password: password |
| 625 | |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 626 | |
Jakub Pavlik | 6dd5c0a | 2016-03-09 14:18:15 +0100 | [diff] [blame] | 627 | Neutron Keystone region |
| 628 | |
| 629 | .. code-block:: yaml |
| 630 | |
| 631 | neutron: |
| 632 | server: |
| 633 | enabled: true |
| 634 | version: kilo |
| 635 | ... |
| 636 | identity: |
| 637 | region: RegionTwo |
| 638 | ... |
| 639 | compute: |
| 640 | region: RegionTwo |
| 641 | ... |
| 642 | |
Jiri Konecny | 93b1999 | 2016-04-12 11:15:39 +0200 | [diff] [blame] | 643 | Client-side RabbitMQ HA setup |
| 644 | |
| 645 | .. code-block:: yaml |
| 646 | |
| 647 | neutron: |
| 648 | server: |
| 649 | .... |
| 650 | message_queue: |
| 651 | engine: rabbitmq |
| 652 | members: |
| 653 | - host: 10.0.16.1 |
| 654 | - host: 10.0.16.2 |
| 655 | - host: 10.0.16.3 |
| 656 | user: openstack |
| 657 | password: pwd |
| 658 | virtual_host: '/openstack' |
| 659 | .... |
| 660 | |
Petr Michalec | 61f7ab2 | 2016-11-29 16:29:09 +0100 | [diff] [blame] | 661 | Enable auditing filter, ie: CADF |
| 662 | |
| 663 | .. code-block:: yaml |
| 664 | |
| 665 | neutron: |
| 666 | server: |
| 667 | audit: |
| 668 | enabled: true |
| 669 | .... |
| 670 | filter_factory: 'keystonemiddleware.audit:filter_factory' |
| 671 | map_file: '/etc/pycadf/neutron_api_audit_map.conf' |
| 672 | .... |
| 673 | compute: |
| 674 | audit: |
| 675 | enabled: true |
| 676 | .... |
| 677 | filter_factory: 'keystonemiddleware.audit:filter_factory' |
| 678 | map_file: '/etc/pycadf/neutron_api_audit_map.conf' |
| 679 | .... |
Jiri Konecny | 93b1999 | 2016-04-12 11:15:39 +0200 | [diff] [blame] | 680 | |
| 681 | |
Aleš Komárek | 41e8231 | 2017-04-11 13:37:44 +0200 | [diff] [blame] | 682 | Neutron Client |
| 683 | -------------- |
Jiri Broulik | 5368cc5 | 2017-02-08 18:53:59 +0100 | [diff] [blame] | 684 | |
| 685 | Neutron networks |
| 686 | |
| 687 | .. code-block:: yaml |
| 688 | |
| 689 | neutron: |
| 690 | client: |
| 691 | enabled: true |
| 692 | server: |
| 693 | identity: |
Richard Felkl | aac256a | 2017-03-23 15:43:49 +0100 | [diff] [blame] | 694 | endpoint_type: internalURL |
Jiri Broulik | 5368cc5 | 2017-02-08 18:53:59 +0100 | [diff] [blame] | 695 | network: |
| 696 | inet1: |
| 697 | tenant: demo |
| 698 | shared: False |
| 699 | admin_state_up: True |
| 700 | router_external: True |
| 701 | provider_physical_network: inet |
| 702 | provider_network_type: flat |
| 703 | provider_segmentation_id: 2 |
| 704 | subnet: |
| 705 | inet1-subnet1: |
| 706 | cidr: 192.168.90.0/24 |
| 707 | enable_dhcp: False |
| 708 | inet2: |
| 709 | tenant: admin |
| 710 | shared: False |
| 711 | router_external: True |
| 712 | provider_network_type: "vlan" |
| 713 | subnet: |
| 714 | inet2-subnet1: |
| 715 | cidr: 192.168.92.0/24 |
| 716 | enable_dhcp: False |
| 717 | inet2-subnet2: |
| 718 | cidr: 192.168.94.0/24 |
| 719 | enable_dhcp: True |
| 720 | identity1: |
| 721 | network: |
| 722 | ... |
| 723 | |
Jiri Broulik | 5368cc5 | 2017-02-08 18:53:59 +0100 | [diff] [blame] | 724 | Neutron routers |
| 725 | |
| 726 | .. code-block:: yaml |
| 727 | |
| 728 | neutron: |
| 729 | client: |
| 730 | enabled: true |
| 731 | server: |
| 732 | identity: |
Richard Felkl | aac256a | 2017-03-23 15:43:49 +0100 | [diff] [blame] | 733 | endpoint_type: internalURL |
Jiri Broulik | 5368cc5 | 2017-02-08 18:53:59 +0100 | [diff] [blame] | 734 | router: |
| 735 | inet1-router: |
| 736 | tenant: demo |
| 737 | admin_state_up: True |
| 738 | gateway_network: inet |
| 739 | interfaces: |
| 740 | - inet1-subnet1 |
| 741 | - inet1-subnet2 |
| 742 | identity1: |
| 743 | router: |
| 744 | ... |
| 745 | |
| 746 | TODO: implement adding new interfaces to a router while updating it |
| 747 | |
| 748 | |
| 749 | Neutron security groups |
| 750 | |
| 751 | .. code-block:: yaml |
| 752 | |
| 753 | neutron: |
| 754 | client: |
| 755 | enabled: true |
| 756 | server: |
| 757 | identity: |
Richard Felkl | aac256a | 2017-03-23 15:43:49 +0100 | [diff] [blame] | 758 | endpoint_type: internalURL |
Jiri Broulik | 5368cc5 | 2017-02-08 18:53:59 +0100 | [diff] [blame] | 759 | security_group: |
| 760 | security_group1: |
| 761 | tenant: demo |
| 762 | description: security group 1 |
| 763 | rules: |
| 764 | - direction: ingress |
| 765 | ethertype: IPv4 |
| 766 | protocol: TCP |
| 767 | port_range_min: 1 |
| 768 | port_range_max: 65535 |
| 769 | remote_ip_prefix: 0.0.0.0/0 |
| 770 | - direction: ingress |
| 771 | ethertype: IPv4 |
| 772 | protocol: UDP |
| 773 | port_range_min: 1 |
| 774 | port_range_max: 65535 |
| 775 | remote_ip_prefix: 0.0.0.0/0 |
| 776 | - direction: ingress |
| 777 | protocol: ICMP |
| 778 | remote_ip_prefix: 0.0.0.0/0 |
| 779 | identity1: |
| 780 | security_group: |
| 781 | ... |
| 782 | |
| 783 | TODO: implement updating existing security rules (now it adds new rule if trying to update existing one) |
| 784 | |
Jiri Broulik | de2e290 | 2017-02-13 15:03:47 +0100 | [diff] [blame] | 785 | |
| 786 | Floating IP addresses |
| 787 | |
| 788 | .. code-block:: yaml |
| 789 | |
| 790 | neutron: |
| 791 | client: |
| 792 | enabled: true |
| 793 | server: |
| 794 | identity: |
Richard Felkl | aac256a | 2017-03-23 15:43:49 +0100 | [diff] [blame] | 795 | endpoint_type: internalURL |
Jiri Broulik | de2e290 | 2017-02-13 15:03:47 +0100 | [diff] [blame] | 796 | floating_ip: |
| 797 | prx01-instance: |
| 798 | server: prx01.mk22-lab-basic.local |
| 799 | subnet: private-subnet1 |
| 800 | network: public-net1 |
| 801 | tenant: demo |
| 802 | gtw01-instance: |
| 803 | ... |
| 804 | |
| 805 | .. note:: The network must have flag router:external set to True. |
| 806 | Instance port in the stated subnet will be associated with the dynamically generated floating IP. |
| 807 | |
| 808 | |
Filip Pytloun | 20c0a44 | 2017-02-02 13:05:13 +0100 | [diff] [blame] | 809 | Documentation and Bugs |
| 810 | ====================== |
| 811 | |
| 812 | To learn how to install and update salt-formulas, consult the documentation |
| 813 | available online at: |
| 814 | |
| 815 | http://salt-formulas.readthedocs.io/ |
| 816 | |
| 817 | In the unfortunate event that bugs are discovered, they should be reported to |
| 818 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 819 | formula: |
| 820 | |
| 821 | https://github.com/salt-formulas/salt-formula-neutron/issues |
| 822 | |
| 823 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 824 | use Launchpad salt-formulas project: |
| 825 | |
| 826 | https://launchpad.net/salt-formulas |
| 827 | |
| 828 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 829 | |
| 830 | https://launchpad.net/~salt-formulas-users |
| 831 | |
| 832 | Developers wishing to work on the salt-formulas projects should always base |
| 833 | their work on master branch and submit pull request against specific formula. |
| 834 | |
| 835 | https://github.com/salt-formulas/salt-formula-neutron |
| 836 | |
| 837 | Any questions or feedback is always welcome so feel free to join our IRC |
| 838 | channel: |
| 839 | |
| 840 | #salt-formulas @ irc.freenode.net |