Merge lp:~sdn-charmers/charms/trusty/odl-controller/odl-cmds into lp:~sdn-charmers/charms/trusty/odl-controller/trunk
| Status: | Merged |
|---|---|
| Merged at revision: | 5 |
| Proposed branch: | lp:~sdn-charmers/charms/trusty/odl-controller/odl-cmds |
| Merge into: | lp:~sdn-charmers/charms/trusty/odl-controller/trunk |
| Diff against target: |
171 lines (+69/-11) 2 files modified
hooks/odl_controller_hooks.py (+28/-11) hooks/odl_controller_utils.py (+41/-0) |
| To merge this branch: | bzr merge lp:~sdn-charmers/charms/trusty/odl-controller/odl-cmds |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| SDN Charmers | 2015-06-16 | Pending | |
|
Review via email:
|
|||
| Liam Young (gnuoy) wrote : | # |
| Liam Young (gnuoy) wrote : | # |
The filter_installed function was added on the assumption that installing features was an expensive operation, it might not be so this may be overkill
| Robert Ayres (robert-ayres) wrote : | # |
Are you using an auto-formatter? Seems to be some formatting changes that aren't related to functionality.
| Liam Young (gnuoy) wrote : | # |
I fixed some flake8 complaints while I was at it
- 6. By Liam Young on 2015-06-16
-
Switch to double quotes for consistency
| Jason Hobbs (jason-hobbs) wrote : | # |
When using this, port 8080 on the controller isn't listening.
https:/
This makes it look like we need: odl-nsf-all and odl-adsal-
Is there a corresponding branch for neutron-api to issue that that odl-cmds?

The post install commands that were being run no longer work on more recent versions of ODL because the features being requested have been renamed or removed.
This mp removes any default commands. Instead, a charm joined via the controller-api relation can request features so be installed or log settings to be set by setting odl-cmds to a string representation of json.
eg
{ install' : ['cosc- cvpn-ovs- rest', 'odl-netconf- connector- all'], cvpn-ovs- rest', 'odl-netconf- connector- all'],
'feature:
'log:set': {
'TRACE': ['cosc-
}
}
The above would request the installation of cosc-cvpn-ovs-rest and odl-netconf- connector- all and set logging to trace for cosc-cvpn-ovs-rest and odl-netconf- connector- all