Search in sources :

Example 1 with StandardIpv6AccessList

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

the class CiscoControlPlaneExtractor method enterStandard_ipv6_access_list_stanza.

@Override
public void enterStandard_ipv6_access_list_stanza(Standard_ipv6_access_list_stanzaContext ctx) {
    String name;
    int definitionLine;
    if (ctx.name != null) {
        name = ctx.name.getText();
        definitionLine = ctx.name.getStart().getLine();
    } else {
        throw new BatfishException("Invalid standard access-list name");
    }
    StandardIpv6AccessList list = _configuration.getStandardIpv6Acls().computeIfAbsent(name, n -> new StandardIpv6AccessList(n, definitionLine));
    _currentStandardIpv6Acl = list;
}
Also used : BatfishException(org.batfish.common.BatfishException) RedFlagBatfishException(org.batfish.common.RedFlagBatfishException) StandardIpv6AccessList(org.batfish.representation.cisco.StandardIpv6AccessList)

Aggregations

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