]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
openvswitch: Remove no longer used options
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Thu, 9 Oct 2014 00:04:34 +0000 (09:04 +0900)
committerYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Wed, 15 Oct 2014 05:05:15 +0000 (14:05 +0900)
They are remainders of the recently removed monolithic OVS plugin.
Note: This change does not touch options used by OVS agent.

Partial-Bug: #1323729
Change-Id: I6dd04c5c506ff5f97f10ebab03943cd508fbfe60

etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
neutron/plugins/openvswitch/common/config.py
neutron/tests/unit/openvswitch/test_ovs_defaults.py

index 9c8e6b5889465cc7e64fc0d40b0190c0269fa3bf..232ca71d368d122f475e0d183747addf0574f5d5 100644 (file)
@@ -1,52 +1,13 @@
 [ovs]
-# (StrOpt) Type of network to allocate for tenant networks. The
-# default value 'local' is useful only for single-box testing and
-# provides no connectivity between hosts. You MUST either change this
-# to 'vlan' and configure network_vlan_ranges below or change this to
-# 'gre' or 'vxlan' and configure tunnel_id_ranges below in order for
-# tenant networks to provide connectivity between hosts. Set to 'none'
-# to disable creation of tenant networks.
-#
-# tenant_network_type = local
-# Example: tenant_network_type = gre
-# Example: tenant_network_type = vxlan
-
-# (ListOpt) Comma-separated list of
-# <physical_network>[:<vlan_min>:<vlan_max>] tuples enumerating ranges
-# of VLAN IDs on named physical networks that are available for
-# allocation. All physical networks listed are available for flat and
-# VLAN provider network creation. Specified ranges of VLAN IDs are
-# available for tenant network allocation if tenant_network_type is
-# 'vlan'. If empty, only gre, vxlan and local networks may be created.
-#
-# network_vlan_ranges =
-# Example: network_vlan_ranges = physnet1:1000:2999
-
 # (BoolOpt) Set to True in the server and the agents to enable support
 # for GRE or VXLAN networks. Requires kernel support for OVS patch ports and
 # GRE or VXLAN tunneling.
 #
 # WARNING: This option will be deprecated in the Icehouse release, at which
-#          point setting tunnel_type below will be required to enable
-#          tunneling.
+#          point setting tunnel_types will be required to enable tunneling.
 #
 # enable_tunneling = False
 
-# (StrOpt) The type of tunnel network, if any, supported by the plugin. If
-# this is set, it will cause tunneling to be enabled. If this is not set and
-# the option enable_tunneling is set, this will default to 'gre'.
-#
-# tunnel_type =
-# Example: tunnel_type = gre
-# Example: tunnel_type = vxlan
-
-# (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples
-# enumerating ranges of GRE or VXLAN tunnel IDs that are available for
-# tenant network allocation if tenant_network_type is 'gre' or 'vxlan'.
-#
-# tunnel_id_ranges =
-# Example: tunnel_id_ranges = 1:1000
-
 # Do not change this parameter unless you have a good reason to.
 # This is the name of the OVS integration bridge. There is one per hypervisor.
 # The integration bridge acts as a virtual "patch bay". All VM VIFs are
@@ -55,7 +16,7 @@
 #
 # integration_bridge = br-int
 
-# Only used for the agent if tunnel_id_ranges (above) is not empty for
+# Only used for the agent if tunnel_id_ranges is not empty for
 # the server.  In most cases, the default value should be fine.
 #
 # tunnel_bridge = br-tun
@@ -66,7 +27,7 @@
 # Peer patch port in tunnel bridge for integration bridge
 # tun_peer_patch_port = patch-int
 
-# Uncomment this line for the agent if tunnel_id_ranges (above) is not
+# Uncomment this line for the agent if tunnel_id_ranges is not
 # empty for the server. Set local-ip to be the local IP address of
 # this hypervisor.
 #
@@ -77,8 +38,8 @@
 # bridge names to be used for flat and VLAN networks. The length of
 # bridge names should be no more than 11. Each bridge must
 # exist, and should have a physical network interface configured as a
-# port. All physical networks listed in network_vlan_ranges on the
-# server should have mappings to appropriate bridges on each agent.
+# port. All physical networks configured on the server should have
+# mappings to appropriate bridges on each agent.
 #
 # bridge_mappings =
 # Example: bridge_mappings = physnet1:br-eth1
 # (ListOpt) The types of tenant network tunnels supported by the agent.
 # Setting this will enable tunneling support in the agent. This can be set to
 # either 'gre' or 'vxlan'. If this is unset, it will default to [] and
-# disable tunneling support in the agent. When running the agent with the OVS
-# plugin, this value must be the same as "tunnel_type" in the "[ovs]" section.
-# When running the agent with ML2, you can specify as many values here as
-# your compute hosts supports.
+# disable tunneling support in the agent.
+# You can specify as many values here as your compute hosts supports.
 #
 # tunnel_types =
 # Example: tunnel_types = gre
 #
 # 1. With VLANs on eth1.
 # [ovs]
-# network_vlan_ranges = default:2000:3999
-# tunnel_id_ranges =
 # integration_bridge = br-int
 # bridge_mappings = default:br-eth1
 #
 # 2. With GRE tunneling.
 # [ovs]
-# network_vlan_ranges =
-# tunnel_id_ranges = 1:1000
 # integration_bridge = br-int
 # tunnel_bridge = br-tun
 # local_ip = 10.0.0.3
 #
 # 3. With VXLAN tunneling.
 # [ovs]
-# network_vlan_ranges =
-# tenant_network_type = vxlan
-# tunnel_type = vxlan
-# tunnel_id_ranges = 1:1000
 # integration_bridge = br-int
 # tunnel_bridge = br-tun
 # local_ip = 10.0.0.3
index d9e0454839c7934a77713967de81ed7d7404450b..03e4d884ff29b02d203c14e8083dfe604c3ea061 100644 (file)
@@ -43,19 +43,6 @@ ovs_opts = [
                 default=DEFAULT_BRIDGE_MAPPINGS,
                 help=_("List of <physical_network>:<bridge>. "
                        "Deprecated for ofagent.")),
-    cfg.StrOpt('tenant_network_type', default='local',
-               help=_("Network type for tenant networks "
-                      "(local, vlan, gre, vxlan, or none).")),
-    cfg.ListOpt('network_vlan_ranges',
-                default=DEFAULT_VLAN_RANGES,
-                help=_("List of <physical_network>:<vlan_min>:<vlan_max> "
-                       "or <physical_network>.")),
-    cfg.ListOpt('tunnel_id_ranges',
-                default=DEFAULT_TUNNEL_RANGES,
-                help=_("List of <tun_min>:<tun_max>.")),
-    cfg.StrOpt('tunnel_type', default='',
-               help=_("The type of tunnels to use when utilizing tunnels, "
-                      "either 'gre' or 'vxlan'.")),
     cfg.BoolOpt('use_veth_interconnection', default=False,
                 help=_("Use veths instead of patch ports to interconnect the "
                        "integration bridge to physical bridges.")),
index 0d5c00f730d916326524f22662acbd229ad70a79..e52b4530e9386c5f40889f80e8112ab978b96b24 100644 (file)
@@ -27,9 +27,6 @@ class ConfigurationTest(base.BaseTestCase):
         self.assertEqual('br-tun', cfg.CONF.OVS.tunnel_bridge)
         self.assertEqual(2, cfg.CONF.AGENT.polling_interval)
         self.assertEqual('sudo', cfg.CONF.AGENT.root_helper)
-        self.assertEqual('local', cfg.CONF.OVS.tenant_network_type)
         self.assertEqual(0, len(cfg.CONF.OVS.bridge_mappings))
-        self.assertEqual(0, len(cfg.CONF.OVS.network_vlan_ranges))
-        self.assertEqual(0, len(cfg.CONF.OVS.tunnel_id_ranges))
         self.assertFalse(cfg.CONF.AGENT.l2_population)
         self.assertFalse(cfg.CONF.AGENT.arp_responder)