@Test public void testToOspfHelloIntervalExplicit() { CiscoConfiguration c = basicCiscoConfig(); Interface iface = new Interface("FastEthernet0/0", c); iface.setOspfHelloInterval(7); assertThat( toOspfHelloInterval(iface, org.batfish.datamodel.ospf.OspfNetworkType.BROADCAST), equalTo(7)); }
@VisibleForTesting static int toOspfHelloInterval( Interface iface, @Nullable org.batfish.datamodel.ospf.OspfNetworkType networkType) { Integer helloInterval = iface.getOspfHelloInterval(); if (helloInterval != null) { return helloInterval; } if (networkType == POINT_TO_POINT || networkType == BROADCAST) { return DEFAULT_OSPF_HELLO_INTERVAL_P2P_AND_BROADCAST; } return DEFAULT_OSPF_HELLO_INTERVAL; }
CiscoConversions { @VisibleForTesting static int toOspfHelloInterval( Interface iface, @Nullable org.batfish.datamodel.ospf.OspfNetworkType networkType) { Integer helloInterval = iface.getOspfHelloInterval(); if (helloInterval != null) { return helloInterval; } if (networkType == POINT_TO_POINT || networkType == BROADCAST) { return DEFAULT_OSPF_HELLO_INTERVAL_P2P_AND_BROADCAST; } return DEFAULT_OSPF_HELLO_INTERVAL; } }
CiscoConversions { @VisibleForTesting static int toOspfHelloInterval( Interface iface, @Nullable org.batfish.datamodel.ospf.OspfNetworkType networkType) { Integer helloInterval = iface.getOspfHelloInterval(); if (helloInterval != null) { return helloInterval; } if (networkType == POINT_TO_POINT || networkType == BROADCAST) { return DEFAULT_OSPF_HELLO_INTERVAL_P2P_AND_BROADCAST; } return DEFAULT_OSPF_HELLO_INTERVAL; } private  CiscoConversions(); }
CiscoConversions { @VisibleForTesting static int toOspfHelloInterval( Interface iface, @Nullable org.batfish.datamodel.ospf.OspfNetworkType networkType) { Integer helloInterval = iface.getOspfHelloInterval(); if (helloInterval != null) { return helloInterval; } if (networkType == POINT_TO_POINT || networkType == BROADCAST) { return DEFAULT_OSPF_HELLO_INTERVAL_P2P_AND_BROADCAST; } return DEFAULT_OSPF_HELLO_INTERVAL; } private  CiscoConversions(); static CommunityList toCommunityList(StandardCommunityList scList); }
CiscoConversions { @VisibleForTesting static int toOspfHelloInterval( Interface iface, @Nullable org.batfish.datamodel.ospf.OspfNetworkType networkType) { Integer helloInterval = iface.getOspfHelloInterval(); if (helloInterval != null) { return helloInterval; } if (networkType == POINT_TO_POINT || networkType == BROADCAST) { return DEFAULT_OSPF_HELLO_INTERVAL_P2P_AND_BROADCAST; } return DEFAULT_OSPF_HELLO_INTERVAL; } private  CiscoConversions(); static CommunityList toCommunityList(StandardCommunityList scList);  }