use of org.batfish.representation.cisco.RipProcess in project batfish by batfish.
the class CiscoControlPlaneExtractor method exitRr_distribute_list.
@Override
public void exitRr_distribute_list(Rr_distribute_listContext ctx) {
RipProcess proc = _currentRipProcess;
int line = ctx.getStart().getLine();
boolean in = ctx.IN() != null;
String name;
boolean acl;
if (ctx.acl != null) {
name = ctx.acl.getText();
acl = true;
_configuration.referenceStructure(CiscoStructureType.IP_ACCESS_LIST, name, CiscoStructureUsage.RIP_DISTRIBUTE_LIST, line);
} else {
name = ctx.prefix_list.getText();
acl = false;
_configuration.referenceStructure(CiscoStructureType.PREFIX_LIST, name, CiscoStructureUsage.RIP_DISTRIBUTE_LIST, line);
}
if (in) {
proc.setDistributeListIn(name);
proc.setDistributeListInAcl(acl);
proc.setDistributeListInLine(line);
} else {
proc.setDistributeListOut(name);
proc.setDistributeListOutAcl(acl);
proc.setDistributeListOutLine(line);
}
}
use of org.batfish.representation.cisco.RipProcess in project batfish by batfish.
the class CiscoControlPlaneExtractor method enterS_router_rip.
@Override
public void enterS_router_rip(S_router_ripContext ctx) {
RipProcess proc = new RipProcess();
currentVrf().setRipProcess(proc);
_currentRipProcess = proc;
}
use of org.batfish.representation.cisco.RipProcess in project batfish by batfish.
the class CiscoControlPlaneExtractor method exitRr_passive_interface.
@Override
public void exitRr_passive_interface(Rr_passive_interfaceContext ctx) {
boolean passive = ctx.NO() == null;
String iname = ctx.iname.getText();
RipProcess proc = _currentRipProcess;
if (passive) {
proc.getPassiveInterfaceList().add(iname);
} else {
proc.getActiveInterfaceList().add(iname);
}
}
Aggregations