Iterable<Ip<?, ?>> nics = vm.listAttachedNics();
builder.privateAddresses(ips(filter(nics, Predicates.instanceOf(PrivateIp.class))));
builder.publicAddresses(ips(filter(nics, Predicates.not(Predicates.instanceOf(PrivateIp.class)))));
// Node state
VirtualMachineState state = vm.getState();
builder.status(virtualMachineStateToNodeState.apply(state));
builder.backendStatus(state.name());
return builder.build();
}