restconf.json configuration for postman


Kawshik Sarkar
 

Hi,

I am trying to edit the restconf.json file to adjust to my requirement. My vpp hc server ip is 172.20.x.x.
Question:
1)where do i update this ip address (if at all on the restconf.json file?). I am pasting the current json file information. Reason i am confused is, there are 3 possible candidates and i cant be sure on whether to add my ip there or leave it as it is. Again im trying to connect from a postman client that is ''not" on the vpp server , hence localhost wont work.

Im confused between ''restconf binding address/websocket address and https binding address''.

Also do i need to change any port settings on this file? Cant seem to reach from postman currently and getting error. Can you suggest which fields to update in this file? Thanks


Inline image 1



Marek Gradzki -X (mgradzki - PANTHEON TECHNOLOGIES@Cisco) <mgradzki@...>
 

Hi,

 

according to your config HTTP is not available outside the vpp server (restconf-binding address is 127.0.0.1).

But you can access it using HTTPS.

HTTPS server is listening on port 8445 and is bound to all IP addresses that  the the java process (0.0.0.0).

 

So if you use postman from other host, make sure you are using https and port 8445.

If you want HTTP, you need to change restconf-binding address to the vpp server address or 0.0.0.0

 

Regards,

Marek

 

From: hc2vpp@... [mailto:hc2vpp@...] On Behalf Of Kawshik Sarkar
Sent: 13 lutego 2018 09:08
To: hc2vpp@...
Subject: [hc2vpp] restconf.json configuration for postman

 

Hi,

I am trying to edit the restconf.json file to adjust to my requirement. My vpp hc server ip is 172.20.x.x.

Question:
1)where do i update this ip address (if at all on the restconf.json file?). I am pasting the current json file information. Reason i am confused is, there are 3 possible candidates and i cant be sure on whether to add my ip there or leave it as it is. Again im trying to connect from a postman client that is ''not" on the vpp server , hence localhost wont work.

Im confused between ''restconf binding address/websocket address and https binding address''.

Also do i need to change any port settings on this file? Cant seem to reach from postman currently and getting error. Can you suggest which fields to update in this file? Thanks

 


Inline image 1