Search in sources :

Example 1 with PsFromFamilyInet

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

the class ConfigurationBuilder method exitPopsf_family.

@Override
public void exitPopsf_family(Popsf_familyContext ctx) {
    PsFrom from;
    if (ctx.INET() != null) {
        from = new PsFromFamilyInet();
    } else if (ctx.INET6() != null) {
        from = new PsFromFamilyInet6();
    } else {
        throw new BatfishException("Unsupported family: " + ctx.getText());
    }
    _currentPsTerm.getFroms().add(from);
}
Also used : PsFromFamilyInet6(org.batfish.representation.juniper.PsFromFamilyInet6) BatfishException(org.batfish.common.BatfishException) PsFrom(org.batfish.representation.juniper.PsFrom) PsFromFamilyInet(org.batfish.representation.juniper.PsFromFamilyInet)

Aggregations

BatfishException (org.batfish.common.BatfishException)1 PsFrom (org.batfish.representation.juniper.PsFrom)1 PsFromFamilyInet (org.batfish.representation.juniper.PsFromFamilyInet)1 PsFromFamilyInet6 (org.batfish.representation.juniper.PsFromFamilyInet6)1