@Override protected List<AutoCloseable> startImpl(final BGPExtensionProviderContext context) { final List<AutoCloseable> regs = new ArrayList<>(); regs.add(context.registerAddressFamily(Ipv4AddressFamily.class, IPV4_AFI)); regs.add(context.registerAddressFamily(Ipv6AddressFamily.class, IPV6_AFI)); regs.add(context.registerSubsequentAddressFamily(UnicastSubsequentAddressFamily.class, UNICAST_SAFI)); regs.add(context.registerSubsequentAddressFamily(MplsLabeledVpnSubsequentAddressFamily.class, VPN_SAFI)); registerExtendedCommunities(regs, context); registerCapabilityParsers(regs, context); registerAttributeParsers(regs, context); registerMessageParsers(regs, context); return regs; }
@Override protected List<AutoCloseable> startImpl(final BGPExtensionProviderContext context) { final List<AutoCloseable> regs = new ArrayList<>(); regs.add(context.registerSubsequentAddressFamily(EvpnSubsequentAddressFamily.class, EVPN_SAFI)); regs.add(context.registerAddressFamily(L2vpnAddressFamily.class, L2VPN_AFI)); registerNlriHandler(context, regs); NlriActivator.registerNlriParsers(regs); registerExtendedCommunities(context, regs); ESIActivator.registerEsiTypeParsers(regs); return regs; }
@Override protected List<AutoCloseable> startImpl(final BGPExtensionProviderContext context) { final List<AutoCloseable> regs = new ArrayList<>(); final SimpleNlriTypeRegistry nlriTypeReg = SimpleNlriTypeRegistry.getInstance(); regs.add(context.registerAddressFamily(LinkstateAddressFamily.class, LINKSTATE_AFI)); regs.add(context.registerSubsequentAddressFamily(LinkstateSubsequentAddressFamily.class, LINKSTATE_SAFI)); final NextHopParserSerializer linkstateNextHopParser = new NextHopParserSerializer() { }; final LinkstateNlriParser parser = new LinkstateNlriParser(); regs.add(context.registerNlriParser(LinkstateAddressFamily.class, LinkstateSubsequentAddressFamily.class, parser, linkstateNextHopParser, Ipv4NextHopCase.class, Ipv6NextHopCase.class)); regs.add(context.registerNlriSerializer(LinkstateRoutes.class, parser)); regs.add(context.registerAttributeSerializer(Attributes1.class, new LinkstateAttributeParser(this.ianaLinkstateAttributeType, this.rsvpTeObjectRegistry))); final LinkstateAttributeParser linkstateAttributeParser = new LinkstateAttributeParser(this.ianaLinkstateAttributeType, this.rsvpTeObjectRegistry); regs.add(context.registerAttributeParser(linkstateAttributeParser.getType(), linkstateAttributeParser)); registerNlriCodecs(regs, nlriTypeReg); registerNlriTlvCodecs(regs, nlriTypeReg); registerBindingSubTlvs(regs); return regs; }
final SimpleFlowspecExtensionProviderContext flowspecContext = this.activator.getContext(); regs.add(context.registerSubsequentAddressFamily(FlowspecSubsequentAddressFamily.class, FLOWSPEC_SAFI)); regs.add(context.registerSubsequentAddressFamily(FlowspecL3vpnSubsequentAddressFamily.class, FLOWSPEC_L3VPN_SAFI));