use of org.batfish.datamodel.vendor_family.cisco.AaaAuthenticationLoginList in project batfish by batfish.
the class CiscoControlPlaneExtractor method enterAaa_authentication_login_list.
@Override
public void enterAaa_authentication_login_list(Aaa_authentication_login_listContext ctx) {
AaaAuthenticationLogin login = _configuration.getCf().getAaa().getAuthentication().getLogin();
String name;
if (ctx.DEFAULT() != null) {
name = AaaAuthenticationLogin.DEFAULT_LIST_NAME;
} else if (ctx.variable() != null) {
name = ctx.variable().getText();
} else {
throw new BatfishException("Unsupported mode");
}
_currentAaaAuthenticationLoginList = login.getLists().computeIfAbsent(name, k -> new AaaAuthenticationLoginList());
}
Aggregations