"control-socket":
{
"comment": "using unix/local socket",
- "type": "unix",
- "name": "/path/to/the/unix/socket-v4"
+ "socket-type": "unix",
+ "socket-name": "/path/to/the/unix/socket-v4"
}
}
}
"model": "kea-dhcp4-server",
"control-socket":
{
- "type": "unix",
- "name": "/path/to/the/unix/socket-v4"
+ "socket-type": "unix",
+ "socket-name": "/path/to/the/unix/socket-v4"
}
},
"model": "kea-dhcp6-server",
"control-socket":
{
- "type": "unix",
- "name": "/path/to/the/unix/socket-v6"
+ "socket-type": "unix",
+ "socket-name": "/path/to/the/unix/socket-v6"
}
},
"model": "kea-dhcp-ddns",
"control-socket":
{
- "type": "stdout",
+ "socket-type": "stdout",
"user-context": { "in-use": false }
}
},
"model": "kea-ctrl-agent",
"control-socket":
{
- "type": "http",
- "host": "127.0.0.1",
- "port": 8000
+ "socket-type": "http",
+ "socket-url": "http://127.0.0.1:8000/"
}
}
},
| global_objects COMMA global_object
;
-// This represents a single top level entry, e.g. Control-netconf, Dhcp6 or DhcpDdns.
+// This represents a single top level entry, e.g. Netconf or Logging.
global_object: netconf_object
| logging_object
- | unknown_map_entry
;
// This define the Control-netconf object.
"expecting }");
testError("{ 123 }\n",
ParserContext::PARSER_NETCONF,
- "<string>:1.3-5: syntax error, unexpected integer");
+ "<string>:1.3-5: syntax error, unexpected integer, "
+ "expecting Netconf or Logging");
testError("{ \"foo\" }\n",
ParserContext::PARSER_JSON,
"<string>:1.9: syntax error, unexpected }, "