Ask Your Question
0

I want to fetch the nodeId of my switch .Which function in l2switch code to use?

asked 2016-04-21 11:05:06 -0700

Ayushi gravatar image

Hi, Could you tell me what functions are triggered when a switch gets connected to controller and how does it get the node ID of the switch. Where and through what function does the controller keep information about the switch as soon as it gets connected.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-04-26 21:27:08 -0700

karthik330 gravatar image

updated 2016-04-26 21:38:18 -0700

Hi , By quick looking the code, DataListener will update the DataStore whenever some changes in the topology and also refresh the graph and add flows to the connected device. So I think you can fetch the nodeId by looking into datastore. Refer this link -> link text (here you can see the code for looking into DataStore to fetch details of Node) It might helpful..

Thanks, -Karthik

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-04-21 11:05:06 -0700

Seen: 69 times

Last updated: Apr 26 '16