@Test public void testLocalAs() { Configuration c = new NetworkFactory() .configurationBuilder() .setConfigurationFormat(ConfigurationFormat.CISCO_IOS) .build(); Environment e = Environment.builder(c) .setBgpSessionProperties( BgpSessionProperties.builder() .setHeadIp(Ip.ZERO) .setHeadAs(3) .setTailIp(Ip.ZERO) .setTailAs(4) .build()) .build(); assertThat(LocalAs.instance().evaluate(e), equalTo(3L)); }
private LocalAs() {}
LocalAs extends AsExpr { private LocalAs() {} }
LocalAs extends AsExpr { private LocalAs() {} private  LocalAs(); }
LocalAs extends AsExpr { private LocalAs() {} private  LocalAs(); static @Nonnull LocalAs instance(); @Override long evaluate(Environment environment); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
LocalAs extends AsExpr { private LocalAs() {} private  LocalAs(); static @Nonnull LocalAs instance(); @Override long evaluate(Environment environment); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }