@Test public void testEvaluate_noBgpSessionProperties() { _thrown.expectMessage("Expected BGP session properties"); INSTANCE.getNextHopIp(Environment.builder(C).build()); }
@Nullable @Override public Ip getNextHopIp(Environment environment) { BgpSessionProperties sessionProps = environment.getBgpSessionProperties(); checkState(sessionProps != null, "Expected BGP session properties"); return sessionProps.getTailIp(); }
BgpPeerAddressNextHop extends NextHopExpr { @Nullable @Override public Ip getNextHopIp(Environment environment) { BgpSessionProperties sessionProps = environment.getBgpSessionProperties(); checkState(sessionProps != null, "Expected BGP session properties"); return sessionProps.getTailIp(); } }
BgpPeerAddressNextHop extends NextHopExpr { @Nullable @Override public Ip getNextHopIp(Environment environment) { BgpSessionProperties sessionProps = environment.getBgpSessionProperties(); checkState(sessionProps != null, "Expected BGP session properties"); return sessionProps.getTailIp(); } private  BgpPeerAddressNextHop(); }
BgpPeerAddressNextHop extends NextHopExpr { @Nullable @Override public Ip getNextHopIp(Environment environment) { BgpSessionProperties sessionProps = environment.getBgpSessionProperties(); checkState(sessionProps != null, "Expected BGP session properties"); return sessionProps.getTailIp(); } private  BgpPeerAddressNextHop(); static BgpPeerAddressNextHop getInstance(); @Override boolean equals(Object obj); @Nullable @Override Ip getNextHopIp(Environment environment); @Override int hashCode(); }
BgpPeerAddressNextHop extends NextHopExpr { @Nullable @Override public Ip getNextHopIp(Environment environment) { BgpSessionProperties sessionProps = environment.getBgpSessionProperties(); checkState(sessionProps != null, "Expected BGP session properties"); return sessionProps.getTailIp(); } private  BgpPeerAddressNextHop(); static BgpPeerAddressNextHop getInstance(); @Override boolean equals(Object obj); @Nullable @Override Ip getNextHopIp(Environment environment); @Override int hashCode();  }