@Test public void testColumnPresence() { assertThat( IpOwnersAnswerer.getColumnMetadata().stream() .map(ColumnMetadata::getName) .collect(Collectors.toList()), contains(COL_NODE, COL_VRFNAME, COL_INTERFACE_NAME, COL_IP, COL_MASK, COL_ACTIVE)); }
@VisibleForTesting static List<ColumnMetadata> getColumnMetadata() { return ImmutableList.of( new ColumnMetadata(COL_NODE, Schema.NODE, "Node hostname"), new ColumnMetadata(COL_VRFNAME, Schema.STRING, "VRF name"), new ColumnMetadata(COL_INTERFACE_NAME, Schema.STRING, "Interface name"), new ColumnMetadata(COL_IP, Schema.IP, "IP address"), new ColumnMetadata(COL_MASK, Schema.INTEGER, "Network mask length"), new ColumnMetadata(COL_ACTIVE, Schema.BOOLEAN, "Whether the interface is active")); }
IpOwnersAnswerer extends Answerer { @VisibleForTesting static List<ColumnMetadata> getColumnMetadata() { return ImmutableList.of( new ColumnMetadata(COL_NODE, Schema.NODE, "Node hostname"), new ColumnMetadata(COL_VRFNAME, Schema.STRING, "VRF name"), new ColumnMetadata(COL_INTERFACE_NAME, Schema.STRING, "Interface name"), new ColumnMetadata(COL_IP, Schema.IP, "IP address"), new ColumnMetadata(COL_MASK, Schema.INTEGER, "Network mask length"), new ColumnMetadata(COL_ACTIVE, Schema.BOOLEAN, "Whether the interface is active")); } }
IpOwnersAnswerer extends Answerer { @VisibleForTesting static List<ColumnMetadata> getColumnMetadata() { return ImmutableList.of( new ColumnMetadata(COL_NODE, Schema.NODE, "Node hostname"), new ColumnMetadata(COL_VRFNAME, Schema.STRING, "VRF name"), new ColumnMetadata(COL_INTERFACE_NAME, Schema.STRING, "Interface name"), new ColumnMetadata(COL_IP, Schema.IP, "IP address"), new ColumnMetadata(COL_MASK, Schema.INTEGER, "Network mask length"), new ColumnMetadata(COL_ACTIVE, Schema.BOOLEAN, "Whether the interface is active")); } IpOwnersAnswerer(Question question, IBatfish batfish); }
IpOwnersAnswerer extends Answerer { @VisibleForTesting static List<ColumnMetadata> getColumnMetadata() { return ImmutableList.of( new ColumnMetadata(COL_NODE, Schema.NODE, "Node hostname"), new ColumnMetadata(COL_VRFNAME, Schema.STRING, "VRF name"), new ColumnMetadata(COL_INTERFACE_NAME, Schema.STRING, "Interface name"), new ColumnMetadata(COL_IP, Schema.IP, "IP address"), new ColumnMetadata(COL_MASK, Schema.INTEGER, "Network mask length"), new ColumnMetadata(COL_ACTIVE, Schema.BOOLEAN, "Whether the interface is active")); } IpOwnersAnswerer(Question question, IBatfish batfish); @Override AnswerElement answer(NetworkSnapshot snapshot); }
IpOwnersAnswerer extends Answerer { @VisibleForTesting static List<ColumnMetadata> getColumnMetadata() { return ImmutableList.of( new ColumnMetadata(COL_NODE, Schema.NODE, "Node hostname"), new ColumnMetadata(COL_VRFNAME, Schema.STRING, "VRF name"), new ColumnMetadata(COL_INTERFACE_NAME, Schema.STRING, "Interface name"), new ColumnMetadata(COL_IP, Schema.IP, "IP address"), new ColumnMetadata(COL_MASK, Schema.INTEGER, "Network mask length"), new ColumnMetadata(COL_ACTIVE, Schema.BOOLEAN, "Whether the interface is active")); } IpOwnersAnswerer(Question question, IBatfish batfish); @Override AnswerElement answer(NetworkSnapshot snapshot);  }