Search in sources :

Example 1 with IsakmpPolicy

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

the class CiscoControlPlaneExtractor method enterCis_policy.

@Override
public void enterCis_policy(Cis_policyContext ctx) {
    if (_currentIsakmpPolicy != null) {
        throw new BatfishException("IsakmpPolicy should be null!");
    }
    _currentIsakmpPolicy = new IsakmpPolicy(ctx.name.getText(), ctx.getStart().getLine());
    _currentIsakmpPolicy.getProposal().setAuthenticationAlgorithm(IkeAuthenticationAlgorithm.SHA1);
}
Also used : BatfishException(org.batfish.common.BatfishException) RedFlagBatfishException(org.batfish.common.RedFlagBatfishException) IsakmpPolicy(org.batfish.representation.cisco.IsakmpPolicy)

Aggregations

BatfishException (org.batfish.common.BatfishException)1 RedFlagBatfishException (org.batfish.common.RedFlagBatfishException)1 IsakmpPolicy (org.batfish.representation.cisco.IsakmpPolicy)1