]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Split SR-IOV configuration file into driver and agent pieces
authorIhar Hrachyshka <ihrachys@redhat.com>
Wed, 26 Aug 2015 15:12:59 +0000 (17:12 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Mon, 31 Aug 2015 21:24:06 +0000 (21:24 +0000)
This is the same as we do for linuxbridge or openvswitch. We should not
expose server-only configuration options to the agent, and vice versa.

DocImpact
Closes-Bug: #1489060
Change-Id: Ie1eda925e051f85d53ad9624d6617d095cf8c7be

etc/neutron/plugins/ml2/ml2_conf_sriov.ini
etc/neutron/plugins/ml2/sriov_agent.ini [new file with mode: 0644]

index 3d02cb04381ef529502073d765f59e3a470a17a5..a39b61e6efadbcbcf8c9177019f3045f8e799717 100644 (file)
@@ -1,5 +1,4 @@
 # Defines configuration options for SRIOV NIC Switch MechanismDriver
-# and Agent
 
 [ml2_sriov]
 # (ListOpt) Comma-separated list of
 # DEPRECATED: This option is deprecated in the Liberty release
 # and will be removed in the Mitaka release. From Mitaka the agent will
 # always be required.
-
-[sriov_nic]
-# (ListOpt) Comma-separated list of <physical_network>:<network_device>
-# tuples mapping physical network names to the agent's node-specific
-# physical network device interfaces of SR-IOV physical function to be used
-# for VLAN networks. All physical networks listed in network_vlan_ranges on
-# the server should have mappings to appropriate interfaces on each agent.
-#
-# physical_device_mappings =
-# Example: physical_device_mappings = physnet1:eth1
-#
-# (ListOpt) Comma-separated list of <network_device>:<vfs__to_exclude>
-# tuples, mapping network_device to the agent's node-specific list of virtual
-# functions that should not be used for virtual networking.
-# vfs_to_exclude is a semicolon-separated list of virtual
-# functions to exclude from network_device. The network_device in the
-# mapping should appear in the physical_device_mappings list.
-# exclude_devices =
-# Example: exclude_devices = eth1:0000:07:00.2; 0000:07:00.3
diff --git a/etc/neutron/plugins/ml2/sriov_agent.ini b/etc/neutron/plugins/ml2/sriov_agent.ini
new file mode 100644 (file)
index 0000000..8866f26
--- /dev/null
@@ -0,0 +1,20 @@
+# Defines configuration options for SRIOV NIC Switch Agent
+
+[sriov_nic]
+# (ListOpt) Comma-separated list of <physical_network>:<network_device>
+# tuples mapping physical network names to the agent's node-specific
+# physical network device interfaces of SR-IOV physical function to be used
+# for VLAN networks. All physical networks listed in network_vlan_ranges on
+# the server should have mappings to appropriate interfaces on each agent.
+#
+# physical_device_mappings =
+# Example: physical_device_mappings = physnet1:eth1
+#
+# (ListOpt) Comma-separated list of <network_device>:<vfs__to_exclude>
+# tuples, mapping network_device to the agent's node-specific list of virtual
+# functions that should not be used for virtual networking.
+# vfs_to_exclude is a semicolon-separated list of virtual
+# functions to exclude from network_device. The network_device in the
+# mapping should appear in the physical_device_mappings list.
+# exclude_devices =
+# Example: exclude_devices = eth1:0000:07:00.2; 0000:07:00.3