use of org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.bgp.neighborscontainer.neighbors.UpdateSourceBuilder in project netvirt by opendaylight.
the class BgpConfigurationManager method addUpdateSource.
// public addNeighbor(nbrIp, remoteAs, md5Secret)
public void addUpdateSource(String nbrIp, String srcIp) {
Ipv4Address nbrAddr = new Ipv4Address(nbrIp);
Ipv4Address srcAddr = new Ipv4Address(srcIp);
InstanceIdentifier.InstanceIdentifierBuilder<UpdateSource> iib = InstanceIdentifier.builder(Bgp.class).child(NeighborsContainer.class).child(Neighbors.class, new NeighborsKey(nbrAddr)).child(UpdateSource.class);
InstanceIdentifier<UpdateSource> iid = iib.build();
UpdateSource dto = new UpdateSourceBuilder().setPeerIp(nbrAddr).setSourceIp(srcAddr).build();
update(iid, dto);
}
Aggregations