use of org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.MultipathBuilder in project netvirt by opendaylight.
the class BgpConfigurationManager method setMultipathStatus.
public void setMultipathStatus(af_afi afi, af_safi safi, boolean enable) {
long lafi = afi.getValue();
long lsafi = safi.getValue();
InstanceIdentifier.InstanceIdentifierBuilder<Multipath> iib = InstanceIdentifier.builder(Bgp.class).child(Multipath.class, new MultipathKey(Long.valueOf(afi.getValue()), Long.valueOf(safi.getValue())));
Multipath dto = new MultipathBuilder().setAfi(lafi).setSafi(lsafi).setMultipathEnabled(enable).build();
update(iib.build(), dto);
}
Aggregations