"extension-key" in openflowplugin extension

asked 2016-08-31 23:37:31 -0700

Veinthrough gravatar image

updated 2016-09-01 02:53:27 -0700

I'm trying to add an extension to openflowplugin according to the nicira and confused at how to fill in "extension-key" in flow match:

image description

I filled in the "extension-key" with "nxm-of-udp-src-key", as defined in file "openflowplugin-extension-nicira-match.yang" as follows:

identity nxm-of-udp-src-key {
    base ext-gen:extension-key;
}

and I can find how it register the convertor with the "nxm-of-udf-src-key" in file "NiciraExtensionProvider.java":

    registrations.add(extensionConverterRegistrator.registerMatchConvertor(new ConverterExtensionKey<>(NxmOfUdpSrcKey.class, EncodeConstants.OF13_VERSION_ID), UDP_SRC_CONVERTOR));R));

where "NxmOfUdpSrcKey.class" is the compiled class type of "nxm-of-udf-src-key" by yangtools.

However, I found that odl cannot go right into the "UdpSrcConvertor.java" when remote debugging.

Who can help me?

edit retag flag offensive close merge delete