Search in sources :

Example 1 with DomainIdTlvParser

use of org.opendaylight.protocol.bgp.linkstate.impl.tlvs.DomainIdTlvParser in project bgpcep by opendaylight.

the class BGPActivator method registerNlriTlvCodecs.

private static void registerNlriTlvCodecs(final List<AutoCloseable> regs, final SimpleNlriTypeRegistry nlriTypeReg) {
    final LocalNodeDescriptorTlvParser localParser = new LocalNodeDescriptorTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(localParser.getType(), localParser));
    regs.add(nlriTypeReg.registerTlvSerializer(localParser.getTlvQName(), localParser));
    final NodeDescriptorTlvParser nodeParser = new NodeDescriptorTlvParser();
    regs.add(nlriTypeReg.registerTlvSerializer(nodeParser.getTlvQName(), nodeParser));
    final AdvertisingNodeDescriptorTlvParser advParser = new AdvertisingNodeDescriptorTlvParser();
    regs.add(nlriTypeReg.registerTlvSerializer(advParser.getTlvQName(), advParser));
    final RemoteNodeDescriptorTlvParser remoteParser = new RemoteNodeDescriptorTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(remoteParser.getType(), remoteParser));
    regs.add(nlriTypeReg.registerTlvSerializer(remoteParser.getTlvQName(), remoteParser));
    final RouterIdTlvParser bgpCrouterIdParser = new RouterIdTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(bgpCrouterIdParser.getType(), bgpCrouterIdParser));
    regs.add(nlriTypeReg.registerTlvSerializer(bgpCrouterIdParser.getTlvQName(), bgpCrouterIdParser));
    final AsNumTlvParser asNumParser = new AsNumTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(asNumParser.getType(), asNumParser));
    regs.add(nlriTypeReg.registerTlvSerializer(asNumParser.getTlvQName(), asNumParser));
    final DomainIdTlvParser bgpDomainIdParser = new DomainIdTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(bgpDomainIdParser.getType(), bgpDomainIdParser));
    regs.add(nlriTypeReg.registerTlvSerializer(bgpDomainIdParser.getTlvQName(), bgpDomainIdParser));
    final AreaIdTlvParser areaIdParser = new AreaIdTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(areaIdParser.getType(), areaIdParser));
    regs.add(nlriTypeReg.registerTlvSerializer(areaIdParser.getTlvQName(), areaIdParser));
    final BgpRouterIdTlvParser bgpRouterIdParser = new BgpRouterIdTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(bgpRouterIdParser.getType(), bgpRouterIdParser));
    regs.add(nlriTypeReg.registerTlvSerializer(bgpRouterIdParser.getTlvQName(), bgpRouterIdParser));
    final MemAsNumTlvParser memAsnParser = new MemAsNumTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(memAsnParser.getType(), memAsnParser));
    regs.add(nlriTypeReg.registerTlvSerializer(memAsnParser.getTlvQName(), memAsnParser));
    final LinkIdTlvParser linkIdParser = new LinkIdTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(linkIdParser.getType(), linkIdParser));
    regs.add(nlriTypeReg.registerTlvSerializer(linkIdParser.getTlvQName(), linkIdParser));
    final Ipv4NeighborTlvParser ipv4nNeighborParser = new Ipv4NeighborTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(ipv4nNeighborParser.getType(), ipv4nNeighborParser));
    regs.add(nlriTypeReg.registerTlvSerializer(ipv4nNeighborParser.getTlvQName(), ipv4nNeighborParser));
    final Ipv6NeighborTlvParser ipv6NeighborParser = new Ipv6NeighborTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(ipv6NeighborParser.getType(), ipv6NeighborParser));
    regs.add(nlriTypeReg.registerTlvSerializer(ipv6NeighborParser.getTlvQName(), ipv6NeighborParser));
    final Ipv4InterfaceTlvParser ipv4InterfaceParser = new Ipv4InterfaceTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(ipv4InterfaceParser.getType(), ipv4InterfaceParser));
    regs.add(nlriTypeReg.registerTlvSerializer(ipv4InterfaceParser.getTlvQName(), ipv4InterfaceParser));
    final Ipv6InterfaceTlvParser ipv6InterfaceParser = new Ipv6InterfaceTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(ipv6InterfaceParser.getType(), ipv6InterfaceParser));
    regs.add(nlriTypeReg.registerTlvSerializer(ipv6InterfaceParser.getTlvQName(), ipv6InterfaceParser));
    final MultiTopoIdTlvParser multiTopoIdParser = new MultiTopoIdTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(multiTopoIdParser.getType(), multiTopoIdParser));
    regs.add(nlriTypeReg.registerTlvSerializer(multiTopoIdParser.getTlvQName(), multiTopoIdParser));
    final ReachTlvParser ipv4ReachParser = new ReachTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(ipv4ReachParser.getType(), ipv4ReachParser));
    regs.add(nlriTypeReg.registerTlvSerializer(ipv4ReachParser.getTlvQName(), ipv4ReachParser));
    final OspfRouteTlvParser ospfRouterParser = new OspfRouteTlvParser();
    regs.add(nlriTypeReg.registerTlvParser(ospfRouterParser.getType(), ospfRouterParser));
    regs.add(nlriTypeReg.registerTlvSerializer(ospfRouterParser.getTlvQName(), ospfRouterParser));
}
Also used : RemoteNodeDescriptorTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.RemoteNodeDescriptorTlvParser) Ipv6NeighborTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.Ipv6NeighborTlvParser) Ipv6InterfaceTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.Ipv6InterfaceTlvParser) DomainIdTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.DomainIdTlvParser) LocalNodeDescriptorTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.LocalNodeDescriptorTlvParser) AdvertisingNodeDescriptorTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.AdvertisingNodeDescriptorTlvParser) AreaIdTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.AreaIdTlvParser) BgpRouterIdTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.BgpRouterIdTlvParser) Ipv4InterfaceTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.Ipv4InterfaceTlvParser) MemAsNumTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.MemAsNumTlvParser) AsNumTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.AsNumTlvParser) MemAsNumTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.MemAsNumTlvParser) AdvertisingNodeDescriptorTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.AdvertisingNodeDescriptorTlvParser) NodeDescriptorTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.NodeDescriptorTlvParser) RemoteNodeDescriptorTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.RemoteNodeDescriptorTlvParser) LocalNodeDescriptorTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.LocalNodeDescriptorTlvParser) OspfRouteTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.OspfRouteTlvParser) LinkIdTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.LinkIdTlvParser) Ipv4NeighborTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.Ipv4NeighborTlvParser) RouterIdTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.RouterIdTlvParser) BgpRouterIdTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.BgpRouterIdTlvParser) MultiTopoIdTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.MultiTopoIdTlvParser) ReachTlvParser(org.opendaylight.protocol.bgp.linkstate.impl.tlvs.ReachTlvParser)

Aggregations

AdvertisingNodeDescriptorTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.AdvertisingNodeDescriptorTlvParser)1 AreaIdTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.AreaIdTlvParser)1 AsNumTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.AsNumTlvParser)1 BgpRouterIdTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.BgpRouterIdTlvParser)1 DomainIdTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.DomainIdTlvParser)1 Ipv4InterfaceTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.Ipv4InterfaceTlvParser)1 Ipv4NeighborTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.Ipv4NeighborTlvParser)1 Ipv6InterfaceTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.Ipv6InterfaceTlvParser)1 Ipv6NeighborTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.Ipv6NeighborTlvParser)1 LinkIdTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.LinkIdTlvParser)1 LocalNodeDescriptorTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.LocalNodeDescriptorTlvParser)1 MemAsNumTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.MemAsNumTlvParser)1 MultiTopoIdTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.MultiTopoIdTlvParser)1 NodeDescriptorTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.NodeDescriptorTlvParser)1 OspfRouteTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.OspfRouteTlvParser)1 ReachTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.ReachTlvParser)1 RemoteNodeDescriptorTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.RemoteNodeDescriptorTlvParser)1 RouterIdTlvParser (org.opendaylight.protocol.bgp.linkstate.impl.tlvs.RouterIdTlvParser)1