Class SimpleEvpnNlriRegistry

    • Method Detail

      • registerNlriParser

        public org.opendaylight.yangtools.concepts.Registration registerNlriParser​(NlriType esiType,
                                                                                   EvpnParser parser)
      • registerNlriSerializer

        public org.opendaylight.yangtools.concepts.Registration registerNlriSerializer​(Class<? extends EvpnChoice> evpnClass,
                                                                                       EvpnSerializer serializer)
      • registerNlriModelSerializer

        public org.opendaylight.yangtools.concepts.Registration registerNlriModelSerializer​(org.opendaylight.yangtools.yang.common.QName qname,
                                                                                            EvpnSerializer serializer)
      • parseEvpn

        public EvpnChoice parseEvpn​(NlriType type,
                                    io.netty.buffer.ByteBuf buffer)
        Description copied from interface: EvpnRegistry
        Decode input buffer to BGP Evpn.
        Specified by:
        parseEvpn in interface EvpnRegistry
        Parameters:
        type - Nlri Type
        buffer - encoded EvpnChoice body in Bytebuf
        Returns:
        EvpnChoice
      • serializeEvpn

        public io.netty.buffer.ByteBuf serializeEvpn​(EvpnChoice evpn,
                                                     io.netty.buffer.ByteBuf common)
        Description copied from interface: EvpnRegistry
        Encode input BGP Evpn to output buffer.
        Specified by:
        serializeEvpn in interface EvpnRegistry
        Parameters:
        evpn - EvpnChoice
        common - encoded common Evpn
        Returns:
        encoded EvpnChoice body in Bytebuf
      • serializeEvpnModel

        public EvpnChoice serializeEvpnModel​(org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode evpnChoice)
        Description copied from interface: EvpnRegistry
        Decode Evpn Model to Evpn.
        Specified by:
        serializeEvpnModel in interface EvpnRegistry
        Parameters:
        evpnChoice - ChoiceNode containing Evpn
        Returns:
        EvpnChoice
      • serializeEvpnRouteKey

        public EvpnChoice serializeEvpnRouteKey​(org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode evpnChoice)
        Description copied from interface: EvpnRegistry
        Create Route key from Evpn model.
        Specified by:
        serializeEvpnRouteKey in interface EvpnRegistry
        Parameters:
        evpnChoice - ChoiceNode containing Evpn
        Returns:
        EvpnChoice