Example #1
0
def cplane_controller_relation_changed():
    set_cp_agent()
    manage_fip()
    restart_cp_agentd()
Example #2
0
 def test_restart_cp_agentd(self, m_check_call):
     cplane_utils.restart_cp_agentd()
     self.assertEqual(m_check_call.call_args,
                      call(['service', 'cp-agentd',
                            'restart']))
def docker_controller_relation_changed():
    set_cp_agent_dc()
    restart_cp_agentd()
def cplane_controller_relation_changed():
    set_cp_agent()
    set_cp_agent_dc()
    manage_fip()
    restart_cp_agentd()
def docker_controller_relation_changed():
    set_cp_agent_dc()
    restart_cp_agentd()
 def test_restart_cp_agentd(self, m_check_call):
     cplane_utils.restart_cp_agentd()
     self.assertEqual(m_check_call.call_args,
                      call(['service', 'cp-agentd',
                            'restart']))