~saviq/charms/trusty/neutron-contrail/config-vhost-interface

« back to all changes in this revision

Viewing changes to hooks/neutron_contrail_hooks.py

  • Committer: Michał Sawicz
  • Date: 2015-07-01 11:55:26 UTC
  • Revision ID: michal.sawicz@canonical.com-20150701115526-1fdosx33vw8hazfy
Need to start the service in case the physical interface does not change

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
from charmhelpers.core.host import (
16
16
    restart_on_change,
17
17
    service_stop,
 
18
    service_start,
18
19
    service_restart
19
20
)
20
21
 
71
72
    configure_vrouter()
72
73
    configure_virtual_gateways()
73
74
    write_config()
 
75
    service_start("contrail-vrouter-agent")
74
76
    if not units("contrail-discovery") and not units("control-node"):
75
77
        config["control-node-ready"] = True if config.get("discovery-server-ip") \
76
78
                                            else False