Search in sources :

Example 1 with LoggingBuilder

use of org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.LoggingBuilder in project netvirt by opendaylight.

the class BgpConfigurationManager method addLogging.

public void addLogging(String fileName, String logLevel) {
    InstanceIdentifier.InstanceIdentifierBuilder<Logging> iib = InstanceIdentifier.builder(Bgp.class).child(Logging.class);
    InstanceIdentifier<Logging> iid = iib.build();
    Logging dto = new LoggingBuilder().setFile(fileName).setLevel(logLevel).build();
    update(iid, dto);
}
Also used : Logging(org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.Logging) InstanceIdentifier(org.opendaylight.yangtools.yang.binding.InstanceIdentifier) Bgp(org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.Bgp) LoggingBuilder(org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.LoggingBuilder)

Aggregations

Bgp (org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.Bgp)1 Logging (org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.Logging)1 LoggingBuilder (org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.LoggingBuilder)1 InstanceIdentifier (org.opendaylight.yangtools.yang.binding.InstanceIdentifier)1