def missing_java(): if layer.options('apache-bigtop-base').get('install_java'): set_state('install_java') elif any_states('java.joined', 'hadoop-plugin.joined'): hookenv.status_set('waiting', 'waiting on java') else: hookenv.status_set('blocked', 'waiting on relation to java')
def not_ready_add(): actions = [ 'vpe.add-corporation', 'vpe.connect-domains', 'vpe.delete-domain-connections', 'vpe.remove-corporation', ] if helpers.any_states(*actions): action_fail('VPE is not configured') status_set('blocked', 'vpe is not configured')
def not_ready_add(): actions = [ 'vpe.add-corporation', 'vpe.connect-domains', 'vpe.delete-domain-connections', 'vpe.remove-corporation', 'vpe.configure-interface', 'vpe.configure-ospf', ] if helpers.any_states(*actions): action_fail('VPE is not configured') status_set('blocked', 'vpe is not configured')
def top_level(): if any_states('top-level'): set_state('top-level-repeat') set_state('top-level')
def not_ready_add(): if helpers.any_states(*actions): action_fail('FORTIOS is not configured') status_set('blocked', 'fortios is not configured')