Inject mechanism drivers configuration

This commit is contained in:
Mathieu Mitchell 2017-11-13 21:54:40 -05:00
parent 42f7d466b3
commit 60362eeae5
3 changed files with 20 additions and 1 deletions

12
README Normal file
View File

@ -0,0 +1,12 @@
Basic instructions...
vim /home/ubuntu/switchconfig.ini
cd src
charm build
juju deploy /home/ubuntu/charm-neutron-api-genericswitch/src/builds/neutron-api-genericswitch --resource genericswitch-ml2-config=/home/ubuntu/switchconfig.ini
//juju config neutron-api-genericswitch pip-requirement-line=alternative-package-name
juju add-relation neutron-api neutron-api-genericswitch

View File

@ -2,4 +2,4 @@ options:
pip-requirement-line:
type: string
default: "networking-generic-switch==0.4.0"
description: Pip requirement line.
description: Pip requirement line. This configuration option is only read on initial installation.

View File

@ -79,6 +79,13 @@ class NewtonNeutronAPIGenericSwitchCharm(charms_openstack.charm.OpenStackCharm):
'DEFAULT': [
],
}
},
"/etc/neutron/plugins/ml2/ml2_conf.ini": {
"sections": {
'ml2': [
('mechanism_drivers', 'openvswitch,hyperv,genericswitch')
]
}
}
}
}