use of org.opendaylight.protocol.bgp.mvpn.impl.attributes.tunnel.identifier.PimSmTreeParser in project bgpcep by opendaylight.
the class BGPActivator method start.
@Override
public List<Registration> start(final BGPExtensionProviderContext context) {
final List<Registration> regs = new ArrayList<>();
final SimpleTunnelIdentifierRegistry tunnelIdentifierReg = SimpleTunnelIdentifierRegistry.getInstance();
final RsvpTeP2MpLspParser rsvpTeP2MpLspParser = new RsvpTeP2MpLspParser();
regs.add(tunnelIdentifierReg.registerParser(rsvpTeP2MpLspParser));
regs.add(tunnelIdentifierReg.registerSerializer(rsvpTeP2MpLspParser));
final MldpP2mpLspParser mldpP2mpLspParser = new MldpP2mpLspParser(context.getAddressFamilyRegistry());
regs.add(tunnelIdentifierReg.registerParser(mldpP2mpLspParser));
regs.add(tunnelIdentifierReg.registerSerializer(mldpP2mpLspParser));
final PimSsmTreeParser pimSsmTreeParser = new PimSsmTreeParser();
regs.add(tunnelIdentifierReg.registerParser(pimSsmTreeParser));
regs.add(tunnelIdentifierReg.registerSerializer(pimSsmTreeParser));
final PimSmTreeParser pimSmTreeParser = new PimSmTreeParser();
regs.add(tunnelIdentifierReg.registerParser(pimSmTreeParser));
regs.add(tunnelIdentifierReg.registerSerializer(pimSmTreeParser));
final BidirPimTreeParser bidirPimTreeParser = new BidirPimTreeParser();
regs.add(tunnelIdentifierReg.registerParser(bidirPimTreeParser));
regs.add(tunnelIdentifierReg.registerSerializer(bidirPimTreeParser));
final IngressReplicationParser ingressReplicationParser = new IngressReplicationParser();
regs.add(tunnelIdentifierReg.registerParser(ingressReplicationParser));
regs.add(tunnelIdentifierReg.registerSerializer(ingressReplicationParser));
final MldpMp2mpLspParser mldpMp2mpLspParser = new MldpMp2mpLspParser();
regs.add(tunnelIdentifierReg.registerParser(mldpMp2mpLspParser));
regs.add(tunnelIdentifierReg.registerSerializer(mldpMp2mpLspParser));
regs.add(context.registerSubsequentAddressFamily(McastVpnSubsequentAddressFamily.class, MVPN_SAFI));
final MvpnIpv4NlriHandler mvpnIpv4NlriHandler = new MvpnIpv4NlriHandler();
final Ipv4NextHopParserSerializer ipv4NextHopParser = new Ipv4NextHopParserSerializer();
regs.add(context.registerNlriParser(Ipv4AddressFamily.class, McastVpnSubsequentAddressFamily.class, mvpnIpv4NlriHandler, ipv4NextHopParser, Ipv4NextHopCase.class));
regs.add(context.registerNlriSerializer(MvpnRoutesIpv4.class, mvpnIpv4NlriHandler));
final MvpnIpv6NlriHandler mvpnIpv6NlriHandler = new MvpnIpv6NlriHandler();
final Ipv6NextHopParserSerializer ipv6NextHopParser = new Ipv6NextHopParserSerializer();
regs.add(context.registerNlriParser(Ipv6AddressFamily.class, McastVpnSubsequentAddressFamily.class, mvpnIpv6NlriHandler, ipv6NextHopParser, Ipv6NextHopCase.class));
regs.add(context.registerNlriSerializer(MvpnRoutesIpv6.class, mvpnIpv6NlriHandler));
final PEDistinguisherLabelsAttributeHandler peDistHandler = new PEDistinguisherLabelsAttributeHandler();
regs.add(context.registerAttributeParser(peDistHandler.getType(), peDistHandler));
regs.add(context.registerAttributeSerializer(peDistHandler.getClazz(), peDistHandler));
final PMSITunnelAttributeHandler pmsiParser = new PMSITunnelAttributeHandler();
regs.add(context.registerAttributeParser(pmsiParser.getType(), pmsiParser));
regs.add(context.registerAttributeSerializer(pmsiParser.getClazz(), pmsiParser));
return regs;
}
Aggregations