use of org.batfish.datamodel.answers.ConvertConfigurationAnswerElement in project batfish by batfish.
the class Batfish method mergeConvertAnswer.
private void mergeConvertAnswer(boolean summary, boolean verboseError, InitInfoAnswerElement answerElement) {
ConvertConfigurationAnswerElement convertAnswer = loadConvertConfigurationAnswerElementOrReparse();
mergeInitStepAnswer(answerElement, convertAnswer, summary, verboseError);
for (String failed : convertAnswer.getFailed()) {
answerElement.getParseStatus().put(failed, ParseStatus.FAILED);
}
}
use of org.batfish.datamodel.answers.ConvertConfigurationAnswerElement in project batfish by batfish.
the class CiscoConfigurationTest method before.
// Initializes an empty CiscoConfiguration with a single Interface and minimal settings to not
// crash.
@Before
public void before() {
_config = new CiscoConfiguration(Collections.emptySet());
_config.setVendor(ConfigurationFormat.ARISTA);
_config.setHostname("host");
_config.setAnswerElement(new ConvertConfigurationAnswerElement());
_interface = new Interface("iface", _config);
}
Aggregations