-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
Description
This commit #ce9d91e1e85a3df5af93f7eaeb6fb57b2b5b2c07 introduces change that brakes syntax for registering new host in topology.
What is done: Adding a host using following syntax
curl -v -H 'Accept: application/json' -H 'Content-Type: application/json'
http://192.168.0.10:9603/hosts
-XPOST
-d '{"Ip" : "192.168.0.12", "Name": "ip-192-168-0-12", "RomanaIp" : "10.1.0.0/16", "AgentPort" : 8899 }'
Expecting result: Host created with all fields recognised
{"id":"14","name":"ip-192-168-0-12","ip":"192.168.0.12","romana_ip":"10.1.0.0/16","agentPort":8899,"links":null}
Actual result: Host created with romana_ip field empty
{"id":"9","name":"ip-192-168-0-12","ip":"192.168.0.12","romana_ip":"","agentPort":8899,"links":null
Additional information: since #ce9d91e1e85 following syntax works, but it mixes different spelling conventions together.
curl -v -H 'Accept: application/json' -H 'Content-Type: application/json' http://192.168.0.10:9603/hosts -XPOST -d '{"Ip" : "192.168.0.12", "Name": "ip-192-168-0-12", "romana_ip" : "10.1.0.0/16", "AgentPort" : 8899 }'
Reactions are currently unavailable