protected RequisitionNode createNode(final String id) { RequisitionNode node = new RequisitionNode(); node.setForeignId(id); node.setNodeLabel("node " + id); RequisitionInterface iface = new RequisitionInterface(); iface.setIpAddr("172.16.0." + id); node.putInterface(iface); return node; }
private RequisitionNode createNode(final String nodeLabel, final String foreignId) { final RequisitionNode node = new RequisitionNode(); node.setNodeLabel(nodeLabel); node.setForeignId(foreignId); return node; }