Re: [opendaylight-dev] Unable to Extract Target IP from ARP in Sodium


Luis Gomez
 

Ah, you are trying to import an auto-generated class, I think you have to use this:

import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.ArpMatchFields

BR/Luis

On Oct 12, 2021, at 3:00 PM, sudhanshu naithani <sudhanshunaithani30@...> wrote:

Thanks for your reply Luis.

Regards-
Sudhanshu Naithani 

On Tue, 12 Oct 2021, 10:51 pm Luis Gomez, <ecelgp@...> wrote:
Just curious, which branch or tag are you using to build code?

On Oct 12, 2021, at 6:42 AM, sudhanshu naithani <sudhanshunaithani30@...> wrote:

Hi Everyone,  

I am working with ODL Sodium. In one of my experiments I want to extract a target IP address from an ARP packet. For that API is getArpTargetTransportAddress() [can be found at https://javadocs.opendaylight.org/openflowplugin/sodium/org/opendaylight/yang/gen/v1/urn/opendaylight/model/match/types/rev131026/ArpMatchFields.html ]

Problem is during compilation it is showing following:-

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project main-impl: Compilation failure: Compilation failure:
[ERROR] /home/sudhanshu/eclipse-workspace/odl-l2switch-maven/l2switch-main/src/main/java/org/opendaylight/l2switch/flow/ReactiveFlowWriter.java:[32,91] package org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.arp.match does not exist

Although I have imported this [import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.arp.match.fields;].

Could anyone please let me know what am I missing and how can I make it work?

Thank you.

Warm Regards-
Sudhanshu Naithani





Join integration-dev@lists.opendaylight.org to automatically receive all group messages.