Ask Your Question
0

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 http://127.0.0.1:8083/vtn-webapi/controlleains/\(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,
Vinllen

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
2

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 http://127.0.0.1:8083/vtn-webapi/controllers/<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

Comments

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 "http://127.0.0.1:8083/vtn-webapi/controllers/controllerone/domains/", but it return null : { "domains": [] } and the "http://127.0.0.1:8083/vtn-webapi/controllers/controllerone/domains/\(DEFAULT\)" return error: { "err_code": "40400", "err_msg": "Not Found" }

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

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
0

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

Follow
2 followers

Stats

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

Seen: 183 times

Last updated: Apr 15 '15