use of org.opennms.rancid.RancidNode in project opennms by OpenNMS.
the class RancidProvisioningAdapter method updateGroupConfiguration.
private void updateGroupConfiguration(String group) {
Iterator<Integer> ite = m_onmsNodeRancidNodeMap.keySet().iterator();
while (ite.hasNext()) {
Integer nodeId = ite.next();
RancidNode rnode = m_onmsNodeRancidNodeMap.get(nodeId);
if (group.equals(rnode.getGroup())) {
boolean stateUp = rnode.isStateUp();
rnode.setStateUp(false);
try {
updateConfiguration(nodeId.intValue(), rnode, m_cp, true);
} catch (ProvisioningAdapterException pae) {
LOG.error("updateGroupConfiguration: group: " + group + "failed set down for rancid node: " + rnode.getDeviceName() + "Reason: " + pae.getMessage());
}
rnode.setStateUp(stateUp);
}
}
}
Aggregations