@Test public void testRemoteAs() { 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(RemoteAs.instance().evaluate(e), equalTo(4L)); }
private RemoteAs() {}
RemoteAs extends AsExpr { private RemoteAs() {} }
RemoteAs extends AsExpr { private RemoteAs() {} private  RemoteAs(); }
RemoteAs extends AsExpr { private RemoteAs() {} private  RemoteAs(); static @Nonnull RemoteAs instance(); @Override long evaluate(Environment environment); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
RemoteAs extends AsExpr { private RemoteAs() {} private  RemoteAs(); static @Nonnull RemoteAs instance(); @Override long evaluate(Environment environment); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }