@Test public void testGH6149Flatten() { String hostname = "gh-6149-flatten"; Flattener flattener = Batfish.flatten( readResource(TESTCONFIGS_PREFIX + hostname, UTF_8), new BatfishLogger(BatfishLogger.LEVELSTR_OUTPUT, false), new Settings(), new Warnings(), ConfigurationFormat.JUNIPER, VendorConfigurationFormatDetector.BATFISH_FLATTENED_JUNIPER_HEADER); assert flattener instanceof JuniperFlattener; String flatText = flattener.getFlattenedConfigurationText(); assertThat( flatText, allOf( containsString( "set groups FOO interfaces <*> unit <*> family inet filter input-list filterA"), containsString( "set groups FOO interfaces <*> unit <*> family inet filter input-list filterB"))); }
@Override public String getFlattenedConfigurationText() { return _flattenedConfigurationText; }
JuniperFlattener extends JuniperParserBaseListener implements Flattener { @Override public String getFlattenedConfigurationText() { return _flattenedConfigurationText; } }
JuniperFlattener extends JuniperParserBaseListener implements Flattener { @Override public String getFlattenedConfigurationText() { return _flattenedConfigurationText; } JuniperFlattener(String header); }
JuniperFlattener extends JuniperParserBaseListener implements Flattener { @Override public String getFlattenedConfigurationText() { return _flattenedConfigurationText; } JuniperFlattener(String header); @Override void enterBraced_clause(Braced_clauseContext ctx); @Override void exitBraced_clause(Braced_clauseContext ctx); @Override void enterBracketed_clause(Bracketed_clauseContext ctx); @Override void enterJuniper_configuration(Juniper_configurationContext ctx); @Override void enterStatement(StatementContext ctx); @Override void exitBracketed_clause(Bracketed_clauseContext ctx); @Override void exitJuniper_configuration(Juniper_configurationContext ctx); @Override void exitStatement(StatementContext ctx); @Override void exitTerminator(TerminatorContext ctx); @Override void exitWord(WordContext ctx); @Override String getFlattenedConfigurationText(); @Override FlattenerLineMap getOriginalLineMap(); }
JuniperFlattener extends JuniperParserBaseListener implements Flattener { @Override public String getFlattenedConfigurationText() { return _flattenedConfigurationText; } JuniperFlattener(String header); @Override void enterBraced_clause(Braced_clauseContext ctx); @Override void exitBraced_clause(Braced_clauseContext ctx); @Override void enterBracketed_clause(Bracketed_clauseContext ctx); @Override void enterJuniper_configuration(Juniper_configurationContext ctx); @Override void enterStatement(StatementContext ctx); @Override void exitBracketed_clause(Bracketed_clauseContext ctx); @Override void exitJuniper_configuration(Juniper_configurationContext ctx); @Override void exitStatement(StatementContext ctx); @Override void exitTerminator(TerminatorContext ctx); @Override void exitWord(WordContext ctx); @Override String getFlattenedConfigurationText(); @Override FlattenerLineMap getOriginalLineMap();  }