Inject mechanism drivers configuration
This commit is contained in:
parent
42f7d466b3
commit
60362eeae5
|
@ -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
|
|
@ -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.
|
||||
|
|
|
@ -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')
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue