use of org.opendaylight.yangtools.yang.model.api.EffectiveStatementInference in project bgpcep by opendaylight.
the class AbstractConfigLoader method handleConfigFile.
@Holding("this")
private void handleConfigFile(final ProcessorContext context, final String filename) {
final EffectiveStatementInference schema = context.schema;
if (schema == null) {
LOG.info("No schema present for {}, ignoring file {}", context.processor.fileRootSchema(), filename);
return;
}
final NormalizedNode dto;
try {
dto = parseDefaultConfigFile(schema, filename);
} catch (final IOException | XMLStreamException e) {
LOG.warn("Failed to parse config file {}", filename, e);
return;
}
LOG.info("Loading initial config {}", filename);
context.processor.loadConfiguration(dto);
}
Aggregations