~james-page/charms/trusty/neutron-api/ml2-local-types

« back to all changes in this revision

Viewing changes to hooks/neutron_api_context.py

  • Committer: james.page at ubuntu
  • Date: 2015-09-02 15:00:01 UTC
  • mfrom: (134.1.3 neutron-api)
  • Revision ID: james.page@ubuntu.com-20150902150001-078q9ha720h8n29h
[bbaqar,r=james-page] Add support for PLUMgrid SDN

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
                    ','.join(config('nsx-controllers').split())
163
163
                ctxt['nsx_controllers_list'] = \
164
164
                    config('nsx-controllers').split()
 
165
        if config('neutron-plugin') == 'plumgrid':
 
166
            ctxt['pg_username'] = config('plumgrid-username')
 
167
            ctxt['pg_password'] = config('plumgrid-password')
 
168
            ctxt['virtual_ip'] = config('plumgrid-virtual-ip')
165
169
        ctxt['l2_population'] = self.neutron_l2_population
166
170
        ctxt['enable_dvr'] = self.neutron_dvr
167
171
        ctxt['l3_ha'] = self.neutron_l3ha