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()));
}
Aggregations