Search in sources :

Example 1 with PsThenNextHopIp

use of org.batfish.representation.juniper.PsThenNextHopIp in project batfish by batfish.

the class ConfigurationBuilder method exitPopst_next_hop.

@Override
public void exitPopst_next_hop(Popst_next_hopContext ctx) {
    PsThen then;
    if (ctx.IP_ADDRESS() != null) {
        Ip nextHopIp = new Ip(ctx.IP_ADDRESS().getText());
        then = new PsThenNextHopIp(nextHopIp);
    } else {
        todo(ctx, F_POLICY_TERM_THEN_NEXT_HOP);
        return;
    }
    _currentPsThens.add(then);
}
Also used : PsThen(org.batfish.representation.juniper.PsThen) PsThenNextHopIp(org.batfish.representation.juniper.PsThenNextHopIp) PsThenNextHopIp(org.batfish.representation.juniper.PsThenNextHopIp) FwThenNextIp(org.batfish.representation.juniper.FwThenNextIp) Ip(org.batfish.datamodel.Ip)

Aggregations

Ip (org.batfish.datamodel.Ip)1 FwThenNextIp (org.batfish.representation.juniper.FwThenNextIp)1 PsThen (org.batfish.representation.juniper.PsThen)1 PsThenNextHopIp (org.batfish.representation.juniper.PsThenNextHopIp)1