场景 - 使用 Open vSwitch 与 SFC

概述

操作员可以选择通过 neutron networking-sfc 项目使用 Open vSwitch 配置 SFC 机制,而不是使用 ODL。SFC 配置将使用 MPLS 作为数据平面技术,在 OVS 流中配置 SFC 特定的内容。本文档概述了如何在您的环境中进行设置。

先决条件

根据 Open vSwitch 设置配置您的网络

OpenStack-Ansible 用户变量

为您的网络主机创建 group var 文件 /etc/openstack_deploy/group_vars/network_hosts。它必须包含

# Ensure the openvswitch kernel module is loaded
openstack_host_specific_kernel_modules:
  - name: "openvswitch"
    pattern: "CONFIG_OPENVSWITCH"

在您的 /etc/openstack_deploy/user_variables.yml 中设置以下用户变量

### neutron specific config
neutron_plugin_type: ml2.ovs

neutron_ml2_drivers_type: "flat,vlan"

neutron_plugin_base:
 - router
 - metering
 - flow_classifier
 - sfc

# Typically this would be defined by the os-neutron-install
# playbook. The provider_networks library would parse the
# provider_networks list in openstack_user_config.yml and
# generate the values of network_types, network_vlan_ranges
# and network_mappings. network_mappings would have a
# different value for each host in the inventory based on
# whether or not the host was metal (typically a compute host)
# or a container (typically a neutron agent container)
#
# When using Open vSwitch, we override it to take into account
# the Open vSwitch bridge we are going to define outside of
# OpenStack-Ansible plays
neutron_provider_networks:
  network_flat_networks: "*"
  network_types: "vlan"
  network_vlan_ranges: "physnet1:102:199"
  network_mappings: "physnet1:br-provider"

注意: 与标准 Open vSwitch 配置的唯一区别是设置 neutron_plugin_base