01-dhcp-agent-add-solaris.patch revision 6033
6033N/A--- neutron-2015.1.2/neutron/agent/dhcp_agent.py.~1~ 2015-10-13 10:35:16.000000000 -0700
6033N/A+++ neutron-2015.1.2/neutron/agent/dhcp_agent.py 2016-01-28 23:07:42.219218977 -0800
2900N/A from neutron.agent.common import config
6033N/A from neutron.agent.dhcp import config as dhcp_config
2900N/A+ if platform.system() == "SunOS":
6033N/A--- neutron-2015.1.2/neutron/agent/linux/external_process.py.~1~ 2015-10-13 10:35:16.000000000 -0700
6033N/A+++ neutron-2015.1.2/neutron/agent/linux/external_process.py 2016-01-28 23:07:42.221029379 -0800
6033N/A cmd_callback = self.default_cmd_callback
6033N/A cmd = cmd_callback(self.get_pid_file_name())
6033N/A- run_as_root=self.run_as_root)
6033N/A+ if self.namespace:
6033N/A+ run_as_root=self.run_as_root)
6033N/A+ if self.cmd_addl_env:
6033N/A+ env_params = (['/usr/bin/env'] +
6033N/A+ utils.execute(env_params + list(cmd))
6033N/A+ if platform.system() == "SunOS":
6033N/A+ cmd = ['/usr/bin/pargs', pid]
6033N/A+ exec_out = utils.execute(cmd)
6033N/A--- neutron-2015.1.2/neutron/agent/linux/utils.py.~1~ 2015-10-13 10:35:16.000000000 -0700
6033N/A+++ neutron-2015.1.2/neutron/agent/linux/utils.py 2016-01-28 23:20:12.736969284 -0800
6033N/A from neutron.agent.common import config
6033N/A--- neutron-2015.1.2/neutron/api/rpc/handlers/dhcp_rpc.py.~1~ 2015-10-13 10:35:16.000000000 -0700
6033N/A+++ neutron-2015.1.2/neutron/api/rpc/handlers/dhcp_rpc.py 2016-01-28 23:07:42.219930998 -0800
2900N/A dhcp_enabled_subnet_ids.remove(fixed_ip['subnet_id'])
2900N/A- retval = plugin.update_port(context, port['id'],
2900N/A+ retval = plugin.update_port(context, port['id'],
2900N/A except n_exc.NotFound as e: