<%
var task = cluster.task({group: 'network'});
var connectStatus = 'success', connectStatusLast = 'success';
if (!task || (task && task.match({status: 'ready'}))) {
connectStatus = connectStatusLast = 'stop';
} else if (task && task.match({status: 'error'})) {
connectStatus = connectStatusLast = 'error';
connectStatus = task.match({name: 'verify_networks'}) && !task.get('result').length ? 'error' : 'success';
}
%>
<% if (task && task.match({name: 'verify_networks', status: 'ready'})) { %>
<% } else if (task && task.match({status: 'error'})) { %>
<%= task.escape('message').replace(/\n/g, '
') %>
<% if (task.match({name: 'verify_networks'}) && task.get('result').length) { %>
| | | |
<% _.each(task.get('result'), function(node) { %>
<% var absentVlans = _.map(node.absent_vlans, function(vlan) {return vlan || $.t('cluster_page.network_tab.untagged');}) %>
<%- node.name ? node.name : 'N/A' %> | <%- node.mac ? node.mac : 'N/A' %> | <%- node.interface %> | <%- absentVlans %> |
<% }) %>
<% } %>
<% } %>
<% } else { %>
<% } %>