Search in sources :

Example 1 with IpAsPathAccessListLine

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

the class CiscoControlPlaneExtractor method exitIp_as_path_access_list_tail.

@Override
public void exitIp_as_path_access_list_tail(Ip_as_path_access_list_tailContext ctx) {
    LineAction action = toLineAction(ctx.action);
    String regex = ctx.as_path_regex.getText().trim();
    IpAsPathAccessListLine line = new IpAsPathAccessListLine(action, regex);
    _currentAsPathAcl.addLine(line);
}
Also used : LineAction(org.batfish.datamodel.LineAction) IpAsPathAccessListLine(org.batfish.representation.cisco.IpAsPathAccessListLine)

Aggregations

LineAction (org.batfish.datamodel.LineAction)1 IpAsPathAccessListLine (org.batfish.representation.cisco.IpAsPathAccessListLine)1