use of org.opendaylight.protocol.bgp.parser.impl.message.BGPRouteRefreshMessageParser in project bgpcep by opendaylight.
the class BGPActivator method registerMessageParsers.
private static void registerMessageParsers(final List<AutoCloseable> regs, final BGPExtensionProviderContext context) {
final BGPOpenMessageParser omp = new BGPOpenMessageParser(context.getParameterRegistry());
regs.add(context.registerMessageParser(BGPOpenMessageParser.TYPE, omp));
regs.add(context.registerMessageSerializer(Open.class, omp));
final BGPUpdateMessageParser ump = new BGPUpdateMessageParser(context.getAttributeRegistry());
regs.add(context.registerMessageParser(BGPUpdateMessageParser.TYPE, ump));
regs.add(context.registerMessageSerializer(Update.class, ump));
final BGPNotificationMessageParser nmp = new BGPNotificationMessageParser();
regs.add(context.registerMessageParser(BGPNotificationMessageParser.TYPE, nmp));
regs.add(context.registerMessageSerializer(Notify.class, nmp));
final BGPKeepAliveMessageParser kamp = new BGPKeepAliveMessageParser();
regs.add(context.registerMessageParser(BGPKeepAliveMessageParser.TYPE, kamp));
regs.add(context.registerMessageSerializer(Keepalive.class, kamp));
final AddressFamilyRegistry afiReg = context.getAddressFamilyRegistry();
final SubsequentAddressFamilyRegistry safiReg = context.getSubsequentAddressFamilyRegistry();
final BGPRouteRefreshMessageParser rrmp = new BGPRouteRefreshMessageParser(afiReg, safiReg);
regs.add(context.registerMessageParser(BGPRouteRefreshMessageParser.TYPE, rrmp));
regs.add(context.registerMessageSerializer(RouteRefresh.class, rrmp));
}
Aggregations