~celebdor/charms/trusty/neutron-agents-midonet/trunk

« back to all changes in this revision

Viewing changes to hooks/services.py

  • Committer: Antoni Segura Puimedon
  • Date: 2016-02-08 23:21:48 UTC
  • Revision ID: toni@midokura.com-20160208232148-ph1dyskwa0o7dje8
use the right midonet plugin for Liberty and above

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
    amqp = context.AMQPContext()
87
87
    network_service = MidonetNetworkServiceContext(rel_name='neutron_agents')
88
88
    midonet = common_relations.MidonetApiRelation()
 
89
    if ost_release in ('juno', 'kilo'):
 
90
        midonet_plugin = 'python-neutron-plugin-midonet'
 
91
    else:
 
92
        midonet_plugin = 'python-networking-midonet'
89
93
 
90
94
    manager = base.ServiceManager([
91
95
        {
102
106
                    source='dhcp_agent.ini',
103
107
                    target='/etc/neutron/dhcp_agent.ini'),
104
108
                puppet.InstallPackagesCallback(
105
 
                    ('python-neutron-plugin-midonet',)),
 
109
                    (midonet_plugin,)),
106
110
                OSTRenderer('/etc/neutron/neutron.conf',
107
111
                            [amqp]),
108
112
            ],