Search in sources :

Example 1 with AdjRibInType

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.message.rev200120.AdjRibInType in project bgpcep by opendaylight.

the class BmpMockSession method advertizeRoutes.

private static void advertizeRoutes(final int count, final AdjRibInType type, final Channel channel, final Ipv4Address peerAddress) {
    Ipv4Prefix prefix = PREFIX;
    for (int i = 0; i < count; i++) {
        channel.writeAndFlush(BmpMockUtil.createRouteMonitoring(peerAddress, type, prefix));
        prefix = incrementIpv4Prefix(prefix);
    }
}
Also used : Ipv4Util.incrementIpv4Prefix(org.opendaylight.protocol.util.Ipv4Util.incrementIpv4Prefix) Ipv4Prefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix)

Example 2 with AdjRibInType

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.message.rev200120.AdjRibInType in project bgpcep by opendaylight.

the class BmpMockSession method advertizeRoutes.

private static void advertizeRoutes(final int count, final AdjRibInType type, final Channel channel, final Ipv4AddressNoZone peerAddress) {
    Ipv4Prefix prefix = PREFIX;
    for (int i = 0; i < count; i++) {
        channel.writeAndFlush(BmpMockUtil.createRouteMonitoring(peerAddress, type, prefix));
        prefix = incrementIpv4Prefix(prefix);
    }
}
Also used : Ipv4Util.incrementIpv4Prefix(org.opendaylight.protocol.util.Ipv4Util.incrementIpv4Prefix) Ipv4Prefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix)

Aggregations

Ipv4Util.incrementIpv4Prefix (org.opendaylight.protocol.util.Ipv4Util.incrementIpv4Prefix)2 Ipv4Prefix (org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix)2