Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


InstanceIdentifier for Network-topology

asked 2017-06-15 07:50:17 -0700

th33v1lc4t gravatar image

Hello fellow developers, I am programming a function in order to get the remote_ip information from a network topology. The REST URL is:

To access that node I am building an instance identifier, so far it goes like this:

        InstanceIdentifier<Topology> iid = InstanceIdentifier
            .child(Topology.class, new TopologyKey(new TopologyId(input.getDeviceId())))

I am having trouble trying to resemble the path into the desired leaf to that instance identifier. Do you know were I can check out the rules or instructions todo so?

Thanks a lot.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-06-15 22:40:48 -0700

karthik330 gravatar image

Hi Try the builder . It may helpful . here I use "flow:1" for topologyId (To get OpenFlow - Mininet Topology)

InstanceIdentifier<Topology> topologyInstanceIdentifier = InstanceIdentifier.builder(NetworkTopology.class)
            .child(Topology.class, new TopologyKey(new TopologyId(topologyId)))
edit flag offensive delete publish link more


Worked perfectly, thanks a lot for your help!

th33v1lc4t ( 2017-06-16 02:37:30 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-06-15 07:50:17 -0700

Seen: 44 times

Last updated: Jun 15 '17