Batfish: improve message when disabling unusable vlan interface
Remove unnecessary prefix
Rwmove unnecessary newline
Print the interface name canonically using NodeInterfacePair
@@ -961,9 +961,8 @@ public class Batfish extends PluginConsumer implements IBatfish {
Interface iface = vlanInterfaces.get(vlanNumber);
if ((iface != null) && iface.getAutoState()) {
_logger.warnf(
- "WARNING: Disabling unusable vlan interface because no switch port is assigned "
- + "to it: \"%s:%d\"\n",
- hostname, vlanNumber);
+ "Disabling unusable vlan interface because no switch port is assigned to it: %s",
+ NodeInterfacePair.of(iface));
iface.blacklist();
}
}
