Search in sources :

Example 1 with IsisSettings

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);
}
Also used : BatfishException(org.batfish.common.BatfishException) IsisSettings(org.batfish.representation.juniper.IsisSettings)

Aggregations

BatfishException (org.batfish.common.BatfishException)1 IsisSettings (org.batfish.representation.juniper.IsisSettings)1