Tabnine Logo
OspfProcess$Builder.setReferenceBandwidth
Code IndexAdd Tabnine 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)

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

opb.setReferenceBandwidth(1e8)
  .setAreas(ImmutableSortedMap.of(0L, area0, 1L, area1))
  .build();
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

@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

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

Popular methods of OspfProcess$Builder

  • build
  • <init>
  • setAreas
  • setVrf

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Path (java.nio.file)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Runner (org.openjdk.jmh.runner)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now