Search in sources :

Example 1 with IpsecTransformSet

use of org.batfish.representation.cisco.IpsecTransformSet in project batfish by batfish.

the class CiscoControlPlaneExtractor method enterCip_transform_set.

@Override
public void enterCip_transform_set(Cip_transform_setContext ctx) {
    if (_currentIpsecTransformSet != null) {
        throw new BatfishException("IpsecTransformSet should be null!");
    }
    _currentIpsecTransformSet = new IpsecTransformSet(ctx.name.getText(), ctx.getStart().getLine());
    IpsecProposal proposal = _currentIpsecTransformSet.getProposal();
    proposal.setEncryptionAlgorithm(toEncryptionAlgorithm(ctx.ipsec_encryption()));
    proposal.setAuthenticationAlgorithm(toIpsecAuthenticationAlgorithm(ctx.ipsec_authentication()));
    proposal.setProtocol(toProtocol(ctx.ipsec_authentication()));
}
Also used : BatfishException(org.batfish.common.BatfishException) RedFlagBatfishException(org.batfish.common.RedFlagBatfishException) IpsecTransformSet(org.batfish.representation.cisco.IpsecTransformSet) IpsecProposal(org.batfish.datamodel.IpsecProposal)

Aggregations

BatfishException (org.batfish.common.BatfishException)1 RedFlagBatfishException (org.batfish.common.RedFlagBatfishException)1 IpsecProposal (org.batfish.datamodel.IpsecProposal)1 IpsecTransformSet (org.batfish.representation.cisco.IpsecTransformSet)1