use of org.batfish.representation.juniper.IsisSettings in project batfish by batfish.
the class ConfigurationBuilder method enterIs_level.
@Override
public void enterIs_level(Is_levelContext ctx) {
IsisSettings isisSettings = _currentRoutingInstance.getIsisSettings();
int level = toInt(ctx.DEC());
switch(level) {
case 1:
_currentIsisLevelSettings = isisSettings.getLevel1Settings();
break;
case 2:
_currentIsisLevelSettings = isisSettings.getLevel2Settings();
break;
default:
throw new BatfishException("invalid level: " + level);
}
_currentIsisLevelSettings.setEnabled(true);
}
Aggregations