所有设备驱动程序的通用配置选项

此页面描述了所有 networking-baremetal 设备驱动程序通用的配置选项。 具体的驱动程序可能根据实现方式具有独立的配置要求,请参考特定设备驱动程序的文档。

配置选项

common-example

driver
类型:

字符串

默认值:

<None>

配置设备时使用的驱动程序

switch_id
类型:

字符串

默认值:

<None>

交换机 ID,设备的 MAC 地址。

switch_info
类型:

字符串

默认值:

<None>

可选字符串字段,用于存储任何特定于供应商的信息。

physical_networks
类型:

列表

默认值:

[]

映射到此设备的物理网络列表。

manage_vlans
类型:

布尔值

默认值:

True

如果设备上不应创建和删除 VLAN,请将其设置为 False。

networking_baremetal

enabled_devices
类型:

列表

默认值:

['common-example', 'netconf-openconfig-example']

此选项有一个示例默认值,这意味着其实际默认值可能与上述文档值不同。

插件应管理配置的启用设备。 必须在单独的部分中添加每个设备的驱动程序特定配置。

示例配置文件

以下是将会添加到 /etc/neutron/plugins/ml2/ml2_conf.ini 的示例配置部分。

示例配置也可以在 文件 形式 中查看。

重要提示

示例配置文件是在构建此文档时从 networking-baremetal 自动生成的。您必须确保您的 networking-baremetal 版本与此文档的版本匹配。

[DEFAULT]


[common-example]

#
# From common-device-driver-opts
#

# The driver to use when configuring the device (string value)
#driver = <None>

# The switch ID, MAC address of the device. (string value)
#switch_id = <None>

# Optional string field to be used to store any vendor-specific information.
# (string value)
#switch_info = <None>

# A list of physical networks mapped to this device. (list value)
#physical_networks =

# Set this to False for the device if VLANs should not be create and deleted on
# the device. (boolean value)
#manage_vlans = true


[networking_baremetal]

#
# From common-device-driver-opts
#

# Enabled devices for which the plugin should manageconfiguration. Driver
# specific configuration for each device must be added in separate sections.
# (list value)
#
# This option has a sample default set, which means that
# its actual default value may vary from the one documented
# below.
#enabled_devices = common-example,netconf-openconfig-example