~charmers/charms/precise/nova-compute/trunk

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/network/ovs/__init__.py

  • Committer: James Page
  • Date: 2013-11-17 21:47:29 UTC
  • mfrom: (47.2.12 nova-compute)
  • Revision ID: james.page@canonical.com-20131117214729-g782k2u6bf52c64b
[gandelman-a] Merge of changes for ODS keynotes including NVP support and service restart on db changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
 
70
70
def full_restart():
71
71
    ''' Full restart and reload of openvswitch '''
72
 
    service('force-reload-kmod', 'openvswitch-switch')
 
72
    if os.path.exists('/etc/init/openvswitch-force-reload-kmod.conf'):
 
73
        service('start', 'openvswitch-force-reload-kmod')
 
74
    else:
 
75
        service('force-reload-kmod', 'openvswitch-switch')