"item_default": 53001,
"item_description" : "port number of b10-dhcp-ddns"
},
+ {
+ "item_name": "sender-ip",
+ "item_type": "string",
+ "item_optional": true,
+ "item_default": "",
+ "item_description" : "IP address from which to send to b10-dhcp-ddns (IPv4 or IPv6)"
+ },
+ {
+ "item_name": "sender-port",
+ "item_type": "integer",
+ "item_optional": true,
+ "item_default": 0,
+ "item_description" : "port number from which to send to b10-dhcp-ddns"
+ },
+ {
+ "item_name": "max-queue-size",
+ "item_type": "integer",
+ "item_optional": true,
+ "item_default": 1024,
+ "item_description" : "maximum number of requests allowed in the send queue"
+ },
{
"item_name": "ncr-protocol",
"item_type": "string",
" \"enable-updates\" : true, "
" \"server-ip\" : \"192.168.2.1\", "
" \"server-port\" : 777, "
+ " \"sender-ip\" : \"192.168.2.2\", "
+ " \"sender-port\" : 778, "
+ " \"max-queue-size\" : 2048, "
" \"ncr-protocol\" : \"UDP\", "
" \"ncr-format\" : \"JSON\", "
" \"always-include-fqdn\" : true, "
EXPECT_TRUE(d2_client_config->getEnableUpdates());
EXPECT_EQ("192.168.2.1", d2_client_config->getServerIp().toText());
EXPECT_EQ(777, d2_client_config->getServerPort());
+ EXPECT_EQ("192.168.2.2", d2_client_config->getSenderIp().toText());
+ EXPECT_EQ(778, d2_client_config->getSenderPort());
+ EXPECT_EQ(2048, d2_client_config->getMaxQueueSize());
EXPECT_EQ(dhcp_ddns::NCR_UDP, d2_client_config->getNcrProtocol());
EXPECT_EQ(dhcp_ddns::FMT_JSON, d2_client_config->getNcrFormat());
EXPECT_TRUE(d2_client_config->getAlwaysIncludeFqdn());
ASSERT_NO_THROW(cfg.reset(new D2ClientConfig(true,
isc::asiolink::IOAddress("127.0.0.1"), 53001,
+ isc::asiolink::IOAddress("0.0.0.0"), 0, 1024,
dhcp_ddns::NCR_UDP, dhcp_ddns::FMT_JSON,
(mask & ALWAYS_INCLUDE_FQDN),
(mask & OVERRIDE_NO_UPDATE),