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

Hi all,
I have a problem when using Defense4All (D4A).
I have 2 computers, one is running D4A and other is OpenDaylight controller, and a openflow network base on PCs which have 3 NIC (switch openflow).
After I created the connection between D4A and controller, I don't know how to add netnodes (or counter )into openflow switch and collect traffic info .
Please help me and show me step by step.
Thanks in advance.

The important thing you need to check is that the "id" is correct and pointed to the correct switch. In this example it was DPID of 1. Next to check the trafficPortstr the 1 and 2 related to the port number. same with protectedLinkStr.

Below is the data for the PN node and POST to http://10.125.136.87:8086/rest/app/df/pns

Comments

Thanks Chis O'Shea for your help!!!
Although I tried both "id: 00:00:00:00:00:00:00:01" and the dpid 1 of switch, which I created in mininet, but it is still failure.
P/s: I have used OpenDaylight controller virtualization edition and added netnodes by using D4A web GUI. Is it the problem?

You can do a GET on /rest/app/df/ofcs (towards defence4all) just to confirm it's point to the right ODL controller, and the other thing is check the web log on ODL to see if the defence4all is polling ever 30 second to collect stats, the connection isn't always active only collecting stats.