Ask Your Question

question about 405 error code after created a controller

asked 2016-02-23 22:00:24 -0700

killvawow gravatar image

i created a controller in linux OS, but the response code was 405(Method Not Allowed) The linux command was :

curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"controller": {"controller_id": "con_99", "type": "pfc", "version": "1.0"}}'

but, when the command was

curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"controller": {"controller_id": "con_99", "type": "odc", "version": "1.0"}}'

it worked!!!!

The special was setting of 'type'. When type was set by "odc", is ok. But, when type was set by "odc", is unsuccessed.

Is anybody can tell me is there any special roll about the setting of 'type'?

ps:i am not be good at English, soory!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-03-01 22:36:18 -0700

balakrishnan gravatar image

HI, The roll of "type" is to specify which controller your going to connect with Vtncoordinator. Vtncoodinator can handle multiple type of controller.current VtnCoordinator only includes odcdriver component to handle ODL controller. pfcdriver component is not included in VtnCoordinator source. it will not support type "pfc". could you elaborate the scenario your trying so that we can provide better solution.

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


Asked: 2016-02-23 22:00:24 -0700

Seen: 67 times

Last updated: Mar 01 '16