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


vtn logical_ports restapi return null

asked 2015-04-15 21:27:14 -0700

vinllen gravatar image

updated 2015-04-15 23:11:07 -0700

Hi, Dear all:
  I followed this post to build a simple vtn test with mininet, every executions works well except this command :

curl --user admin:adminpass -H 'content-type: application/json' -X GET\(DEFAULT\)/logical_ports.json

It returns {"logical_ports":[]}, but i install my vtn manager into the controller. It looks like something doesn't install in my controller.
  Great appreciate for anyone's reply.
Best regards,

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted

answered 2015-04-20 21:57:34 -0700

Karthik.S gravatar image

updated 2015-04-20 22:13:51 -0700

Please follow the below command curl --user admin:adminpass -H 'content-type: application/json' -X GET<controllername>/domains/\(DEFAULT\)/logical_ports.json Please add controller name in the place of angle brackets in the above.

edit flag offensive delete publish link more


Dear Karthik, Thankyou for your detailed answers, sorry for delayed response. But i also hava a problem when execute the command. I use the postman to get the domain information with this command "", but it return null : { "domains": [] } and the "\(DEFAULT\)" return error: { "err_code": "40400", "err_msg": "Not Found" }

vinllen ( 2015-04-26 23:33:19 -0700 )edit

answered 2015-04-20 21:56:32 -0700

Karthik.S gravatar image

Hi Vinllen, one of the reason why this issue might occur is when we give incoorect command. We see controllers and domains is missing in URL of command which you given.

edit flag offensive delete publish link more

answered 2015-04-20 21:32:36 -0700

Karthik.S gravatar image

Hi Vinllen, Thanks you attempts. Sorry for delayed response. There is change in latest sources and we are testing it. We will get back to you after testing it in our side. We will come back today. Regards, Karthik

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

Question Tools



Asked: 2015-04-15 21:27:14 -0700

Seen: 225 times

Last updated: Apr 15 '15