]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
ofagent: Remove broken XenAPI support
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Thu, 11 Sep 2014 03:00:13 +0000 (12:00 +0900)
committerYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Thu, 11 Sep 2014 03:10:55 +0000 (12:10 +0900)
ofagent has code for agent-on-DomU support inherited from OVS agent.
However, it's incomplete and broken.  Because ofagent uses a direct
OpenFlow channel instead of ovs-ofctl command to program a switch,
the method to use the special rootwrap can not work.

Closes-Bug: #1368006
Change-Id: I0bb25a296d1f1e65c233ece6deaef6c095d78707

neutron/plugins/ofagent/agent/ofa_neutron_agent.py

index de1516933b41742b5dc15ba5cba9a6be92007ce1..8c4b98a3e3132c3cf40f14fff93f01861c3bf0ba 100644 (file)
@@ -158,13 +158,6 @@ class OFANeutronAgentRyuApp(app_manager.RyuApp):
             LOG.exception(_LE("Agent failed to create agent config map"))
             raise SystemExit(1)
 
-        is_xen_compute_host = ('rootwrap-xen-dom0' in
-                               agent_config['root_helper'])
-        if is_xen_compute_host:
-            # Force ip_lib to always use the root helper to ensure that ip
-            # commands target xen dom0 rather than domU.
-            cfg.CONF.set_default('ip_lib_force_root', True)
-
         agent = OFANeutronAgent(ryuapp, **agent_config)
         self.arplib.set_bridge(agent.int_br)