Interface NlriRegistry


  • @NonNullByDefault
    public interface NlriRegistry
    The codec registry for BGP NLRI, offers services for NLRI encoding/decoding.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Optional<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpUnreachNlri> convertMpReachToMpUnReach​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpReachNlri mpReachNlri, @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpUnreachNlri mpUnreachNlri)
      Convert MP_REACH attribute to MP_UNREACH attribute and merge it with original one if it exists.
      Iterable<NlriSerializer> getSerializers()
      Get all available NLRI encoders.
      org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpReachNlri parseMpReach​(io.netty.buffer.ByteBuf buffer, @Nullable PeerSpecificParserConstraint constraint)
      Decode MP REACH NLRI Attribute.
      org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpUnreachNlri parseMpUnreach​(io.netty.buffer.ByteBuf buffer, @Nullable PeerSpecificParserConstraint constraint)
      Decode MP REACH NLRI Attribute.
      void serializeMpReach​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpReachNlri mpReachNlri, io.netty.buffer.ByteBuf byteAggregator)
      Encode BGP MP REACH NLRI Attribute.
      void serializeMpUnReach​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpUnreachNlri mpUnreachNlri, io.netty.buffer.ByteBuf byteAggregator)
      Encode BGP MP UNREACH NLRI Attribute.
    • Method Detail

      • parseMpReach

        org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpReachNlri parseMpReach​(io.netty.buffer.ByteBuf buffer,
                                                                                                                                                @Nullable PeerSpecificParserConstraint constraint)
                                                                                                                                         throws org.opendaylight.protocol.bgp.parser.BGPParsingException
        Decode MP REACH NLRI Attribute.
        Parameters:
        buffer - Input buffer.
        constraint - Peer specific constraint.
        Returns:
        Parsed reach NLRI.
        Throws:
        org.opendaylight.protocol.bgp.parser.BGPParsingException
      • parseMpUnreach

        org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpUnreachNlri parseMpUnreach​(io.netty.buffer.ByteBuf buffer,
                                                                                                                                                    @Nullable PeerSpecificParserConstraint constraint)
                                                                                                                                             throws org.opendaylight.protocol.bgp.parser.BGPParsingException
        Decode MP REACH NLRI Attribute.
        Parameters:
        buffer - Input buffer.
        constraint - Peer specific constraint.
        Returns:
        Parsed unreach NLRI.
        Throws:
        org.opendaylight.protocol.bgp.parser.BGPParsingException
      • serializeMpReach

        void serializeMpReach​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpReachNlri mpReachNlri,
                              io.netty.buffer.ByteBuf byteAggregator)
        Encode BGP MP REACH NLRI Attribute.
        Parameters:
        mpReachNlri - Input reach NLRI.
        byteAggregator - Output buffer.
      • serializeMpUnReach

        void serializeMpUnReach​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpUnreachNlri mpUnreachNlri,
                                io.netty.buffer.ByteBuf byteAggregator)
        Encode BGP MP UNREACH NLRI Attribute.
        Parameters:
        mpUnreachNlri - Input unreach NLRI.
        byteAggregator - Output buffer.
      • getSerializers

        Iterable<NlriSerializer> getSerializers()
        Get all available NLRI encoders.
        Returns:
        Iterable of NLRI serializers.
      • convertMpReachToMpUnReach

        Optional<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpUnreachNlri> convertMpReachToMpUnReach​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpReachNlri mpReachNlri,
                                                                                                                                                                         @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpUnreachNlri mpUnreachNlri)
        Convert MP_REACH attribute to MP_UNREACH attribute and merge it with original one if it exists.

        The default implementation rejects the conversion.

        Parameters:
        mpReachNlri - MP_REACH attribute to be converted
        mpUnreachNlri - original MP_UNREACH attribute
        Returns:
        resulting MP_UNREACH attribute after conversion