Search in sources :

Example 1 with YanglibConfig

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.yanglib.impl.rev141210.YanglibConfig in project netconf by opendaylight.

the class YangLibProviderTest method setUp.

@Before
public void setUp() {
    try {
        if (CACHE_DIR.exists()) {
            FileUtils.cleanDirectory(CACHE_DIR);
        }
    } catch (IOException e) {
    // Ignore
    }
    final YanglibConfig yanglibConfig = new YanglibConfigBuilder().setBindingAddr("www.fake.com").setBindingPort(Uint32.valueOf(300)).setCacheFolder(CACHE_DIR.getAbsolutePath()).build();
    yangLibProvider = new YangLibProvider(yanglibConfig, dataBroker, new DefaultYangParserFactory());
}
Also used : YanglibConfig(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.yanglib.impl.rev141210.YanglibConfig) DefaultYangParserFactory(org.opendaylight.yangtools.yang.parser.impl.DefaultYangParserFactory) IOException(java.io.IOException) YanglibConfigBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.yanglib.impl.rev141210.YanglibConfigBuilder) Before(org.junit.Before)

Aggregations

IOException (java.io.IOException)1 Before (org.junit.Before)1 YanglibConfig (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.yanglib.impl.rev141210.YanglibConfig)1 YanglibConfigBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.yanglib.impl.rev141210.YanglibConfigBuilder)1 DefaultYangParserFactory (org.opendaylight.yangtools.yang.parser.impl.DefaultYangParserFactory)1