~hopem/charms/trusty/neutron-openvswitch/lp1525845

« back to all changes in this revision

Viewing changes to hooks/neutron_ovs_hooks.py

Tags: 15.10
Add unit status support

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
from charmhelpers.contrib.openstack.utils import (
24
24
    os_requires_version,
 
25
    set_os_workload_status,
25
26
)
26
27
 
27
28
from neutron_ovs_utils import (
38
39
    enable_local_dhcp,
39
40
    install_packages,
40
41
    purge_packages,
 
42
    REQUIRED_INTERFACES,
 
43
    check_optional_relations,
41
44
)
42
45
 
43
46
hooks = Hooks()
130
133
        hooks.execute(sys.argv)
131
134
    except UnregisteredHookError as e:
132
135
        log('Unknown hook {} - skipping.'.format(e))
 
136
    set_os_workload_status(CONFIGS, REQUIRED_INTERFACES,
 
137
                           charm_func=check_optional_relations)
133
138
 
134
139
 
135
140
if __name__ == '__main__':