Search in sources :

Example 1 with FwFromProtocol

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

the class ConfigurationBuilder method exitFftf_protocol.

@Override
public void exitFftf_protocol(Fftf_protocolContext ctx) {
    IpProtocol protocol = toIpProtocol(ctx.ip_protocol());
    FwFrom from = new FwFromProtocol(protocol);
    _currentFwTerm.getFroms().add(from);
}
Also used : IpProtocol(org.batfish.datamodel.IpProtocol) FwFrom(org.batfish.representation.juniper.FwFrom) FwFromProtocol(org.batfish.representation.juniper.FwFromProtocol)

Aggregations

IpProtocol (org.batfish.datamodel.IpProtocol)1 FwFrom (org.batfish.representation.juniper.FwFrom)1 FwFromProtocol (org.batfish.representation.juniper.FwFromProtocol)1