Ask Your Question
0

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: http://127.0.0.1:8181/restconf/operat...

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

        InstanceIdentifier<Topology> iid = InstanceIdentifier
            .create(NetworkTopology.class)
            .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
0

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)))
            .build();
edit flag offensive delete publish link more

Comments

Worked perfectly, thanks a lot for your help!

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

Question Tools

Follow
1 follower

Stats

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

Seen: 7 times

Last updated: Jun 15