Codota Logo
OspfProcess$Builder.setReferenceBandwidth
Code IndexAdd Codota to your IDE (free)

How to use
setReferenceBandwidth
method
in
org.batfish.datamodel.ospf.OspfProcess$Builder

Best Java code snippets using org.batfish.datamodel.ospf.OspfProcess$Builder.setReferenceBandwidth (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: batfish/batfish

private OspfProcess createOspfProcess(RoutingInstance routingInstance) {
 OspfProcess newProc =
   OspfProcess.builder()
     .setReferenceBandwidth(routingInstance.getOspfReferenceBandwidth())
     .build();
 String vrfName = routingInstance.getName();
origin: batfish/batfish

org.batfish.datamodel.ospf.OspfProcess newProcess =
  org.batfish.datamodel.ospf.OspfProcess.builder()
    .setReferenceBandwidth(proc.getReferenceBandwidth())
    .build();
org.batfish.datamodel.Vrf vrf = c.getVrfs().get(vrfName);
origin: batfish/batfish

if (ospf != null) {
 OspfProcess abstractOspf =
   OspfProcess.builder().setReferenceBandwidth(ospf.getReferenceBandwidth()).build();
 abstractOspf.setAreas(ospf.getAreas());
 abstractOspf.setExportPolicy(ospf.getExportPolicy());
origin: batfish/batfish

/** Return an OSPF builder. Pre-defines required fields (e.g., reference bandwidth) */
public OspfProcess.Builder ospfProcessBuilder() {
 return OspfProcess.builder(this).setReferenceBandwidth(1e8);
}
origin: batfish/batfish

@Test
public void testGetOspfEdges() {
 OspfProcess ospf1 = OspfProcess.builder().setReferenceBandwidth(1e8).build();
 OspfProcess ospf2 = OspfProcess.builder().setReferenceBandwidth(1e8).build();
 NetworkFactory nf = new NetworkFactory();
 OspfArea.builder(nf).setNumber(1L).setOspfProcess(ospf1).addInterface("int1").build();
 OspfArea.builder(nf).setNumber(1L).setOspfProcess(ospf2).addInterface("int2").build();
 Vrf vrf1 = new Vrf("vrf1");
 vrf1.setOspfProcess(ospf1);
 Vrf vrf2 = new Vrf("vrf2");
 vrf2.setOspfProcess(ospf2);
 _host1.setVrfs(ImmutableSortedMap.of("vrf1", vrf1));
 _host2.setVrfs(ImmutableSortedMap.of("vrf2", vrf2));
 _host1.getAllInterfaces().get("int1").setVrf(vrf1);
 _host2.getAllInterfaces().get("int2").setVrf(vrf2);
 Multiset<Row> rows =
   getOspfEdges(_configurations, _includeNodes, _includeRemoteNodes, _topology);
 assertThat(
   rows,
   contains(
     allOf(
       hasColumn(
         COL_INTERFACE,
         equalTo(new NodeInterfacePair("host1", "int1")),
         Schema.INTERFACE),
       hasColumn(
         COL_REMOTE_INTERFACE,
         equalTo(new NodeInterfacePair("host2", "int2")),
         Schema.INTERFACE))));
}
origin: batfish/batfish

@Test
public void getProperties() {
 OspfProcess ospf1 = OspfProcess.builder().setReferenceBandwidth(1e8).build();
 ospf1.setExportPolicy("my-policy");
 ospf1.setReferenceBandwidth(42.0);
origin: batfish/batfish

opb.setReferenceBandwidth(1e8)
  .setAreas(ImmutableSortedMap.of(0L, area0, 1L, area1))
  .build();
org.batfish.datamodel.ospfOspfProcess$BuildersetReferenceBandwidth

Popular methods of OspfProcess$Builder

  • build
  • <init>
  • setAreas
  • setVrf

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Notification (javax.management)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now