diff --git a/src/bin/dhcp4/ctrl_dhcp4_srv.cc b/src/bin/dhcp4/ctrl_dhcp4_srv.cc index e251b48b8baf878fad3d3e0864a17cbfcae278cc..3964a1a3fb08c557a93d2f3e40342b9f1157240f 100644 --- a/src/bin/dhcp4/ctrl_dhcp4_srv.cc +++ b/src/bin/dhcp4/ctrl_dhcp4_srv.cc @@ -232,7 +232,7 @@ ControlledDhcpv4Srv::commandConfigReloadHandler(const string&, LOG_ERROR(dhcp4_logger, DHCP4_DYNAMIC_RECONFIGURATION_FAIL) .arg(file); return (createAnswer(CONTROL_RESULT_ERROR, - "Config reload failed:" + string(ex.what()))); + "Config reload failed: " + string(ex.what()))); } } diff --git a/src/bin/dhcp4/dhcp4_messages.cc b/src/bin/dhcp4/dhcp4_messages.cc index cad1111a56b4c1e74c105d92bde3f736bf7034f1..0c8bf0158077001de797a4904f9c8df279501a19 100644 --- a/src/bin/dhcp4/dhcp4_messages.cc +++ b/src/bin/dhcp4/dhcp4_messages.cc @@ -188,7 +188,7 @@ const char* values[] = { "DHCP4_DHCP4O6_RECEIVE_FAIL", "failed to receive DHCPv4o6: %1", "DHCP4_DHCP4O6_RECEIVING", "receiving DHCPv4o6 packet from DHCPv6 server", "DHCP4_DHCP4O6_RESPONSE_DATA", "%1: responding with packet %2 (type %3), packet details: %4", - "DHCP4_DYNAMIC_RECONFIGURATION", "initiate server reconfiguration using file: %1, after receiving SIGHUP signal", + "DHCP4_DYNAMIC_RECONFIGURATION", "initiate server reconfiguration using file: %1, after receiving SIGHUP signal or config-reload command", "DHCP4_DYNAMIC_RECONFIGURATION_FAIL", "dynamic server reconfiguration failed with file: %1", "DHCP4_EMPTY_HOSTNAME", "%1: received empty hostname from the client, skipping processing of this option", "DHCP4_FLEX_ID", "flexible identifier generated for incoming packet: %1", diff --git a/src/bin/dhcp4/dhcp4_messages.mes b/src/bin/dhcp4/dhcp4_messages.mes index f7f1251440318a0fd1c2b09cdb96b46b28cbf195..40a02f109b8208299b560097fd247ab258397c62 100644 --- a/src/bin/dhcp4/dhcp4_messages.mes +++ b/src/bin/dhcp4/dhcp4_messages.mes @@ -270,9 +270,9 @@ information. The second and third argument contains the packet name and type respectively. The fourth argument contains detailed packet information. -% DHCP4_DYNAMIC_RECONFIGURATION initiate server reconfiguration using file: %1, after receiving SIGHUP signal +% DHCP4_DYNAMIC_RECONFIGURATION initiate server reconfiguration using file: %1, after receiving SIGHUP signal or config-reload command This is the info message logged when the DHCPv4 server starts reconfiguration -as a result of receiving SIGHUP signal. +as a result of receiving SIGHUP signal or config-reload command. % DHCP4_DYNAMIC_RECONFIGURATION_FAIL dynamic server reconfiguration failed with file: %1 This is an error message logged when the dynamic reconfiguration of the diff --git a/src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc b/src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc index b76e8616e10b2f8626ab9a0fa6f708248f59e3ec..27ce7bf1dbaa7ae9a55bc55983531b38d1b69d68 100644 --- a/src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc +++ b/src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc @@ -1076,7 +1076,7 @@ TEST_F(CtrlChannelDhcpv4SrvTest, configReloadMissingFile) { sendUnixCommand("{ \"command\": \"config-reload\" }", response); // Verify the reload was rejected. - EXPECT_EQ("{ \"result\": 1, \"text\": \"Config reload failed:" + EXPECT_EQ("{ \"result\": 1, \"text\": \"Config reload failed: " "configuration error using file 'test6.json': Unable to open file " "test6.json\" }", response); @@ -1102,7 +1102,7 @@ TEST_F(CtrlChannelDhcpv4SrvTest, configReloadBrokenFile) { sendUnixCommand("{ \"command\": \"config-reload\" }", response); // Verify the reload will fail. - EXPECT_EQ("{ \"result\": 1, \"text\": \"Config reload failed:" + EXPECT_EQ("{ \"result\": 1, \"text\": \"Config reload failed: " "configuration error using file 'test7.json': " "test7.json:1.1: Invalid character: g\" }", response); diff --git a/src/bin/dhcp6/ctrl_dhcp6_srv.cc b/src/bin/dhcp6/ctrl_dhcp6_srv.cc index ee95de32cd5b7bcd97e8a22c310b8ac49e87311e..8cb2737cce81f30cd2d3f6ad3066fdc6a0666a81 100644 --- a/src/bin/dhcp6/ctrl_dhcp6_srv.cc +++ b/src/bin/dhcp6/ctrl_dhcp6_srv.cc @@ -234,7 +234,7 @@ ControlledDhcpv6Srv::commandConfigReloadHandler(const string&, LOG_ERROR(dhcp6_logger, DHCP6_DYNAMIC_RECONFIGURATION_FAIL) .arg(file); return (createAnswer(CONTROL_RESULT_ERROR, - "Config reload failed:" + string(ex.what()))); + "Config reload failed: " + string(ex.what()))); } } diff --git a/src/bin/dhcp6/dhcp6_messages.cc b/src/bin/dhcp6/dhcp6_messages.cc index ccca0726be679b723b9593eb726018e0152a81d7..e98775602d493bc35da3bd33861f7401a7966643 100644 --- a/src/bin/dhcp6/dhcp6_messages.cc +++ b/src/bin/dhcp6/dhcp6_messages.cc @@ -195,7 +195,7 @@ const char* values[] = { "DHCP6_DHCP4O6_RECEIVE_FAIL", "failed to receive DHCPv4o6: %1", "DHCP6_DHCP4O6_RECEIVING", "receiving DHCPv4o6 packet from DHCPv4 server", "DHCP6_DHCP4O6_SEND_FAIL", "failed to send DHCPv4o6 packet: %1", - "DHCP6_DYNAMIC_RECONFIGURATION", "initiate server reconfiguration using file: %1, after receiving SIGHUP signal", + "DHCP6_DYNAMIC_RECONFIGURATION", "initiate server reconfiguration using file: %1, after receiving SIGHUP signal or config-reload command", "DHCP6_DYNAMIC_RECONFIGURATION_FAIL", "dynamic server reconfiguration failed with file: %1", "DHCP6_FLEX_ID", "flexible identifier generated for incoming packet: %1", "DHCP6_HANDLE_SIGNAL_EXCEPTION", "An exception was thrown while handing signal: %1", diff --git a/src/bin/dhcp6/dhcp6_messages.mes b/src/bin/dhcp6/dhcp6_messages.mes index ac797aaf1f47a9126e89baeb4b45948525b3b180..076cd86381ff8c1b978e030153c5e573a5365ad6 100644 --- a/src/bin/dhcp6/dhcp6_messages.mes +++ b/src/bin/dhcp6/dhcp6_messages.mes @@ -282,9 +282,9 @@ This error is output if the IPv6 DHCP server fails to send an assembled DHCPv4o6 message to a client. The reason for the error is included in the message. -% DHCP6_DYNAMIC_RECONFIGURATION initiate server reconfiguration using file: %1, after receiving SIGHUP signal +% DHCP6_DYNAMIC_RECONFIGURATION initiate server reconfiguration using file: %1, after receiving SIGHUP signal or config-reload command This is the info message logged when the DHCPv6 server starts reconfiguration -as a result of receiving SIGHUP signal. +as a result of receiving SIGHUP signal or config-reload command. % DHCP6_DYNAMIC_RECONFIGURATION_FAIL dynamic server reconfiguration failed with file: %1 This is an error message logged when the dynamic reconfiguration of the diff --git a/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc b/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc index e8742cfd0e14a5ce2020f6d75c10c697e2a3035c..3162406ea254e3bfe2de7e35ec01accdadfd1bb4 100644 --- a/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc +++ b/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc @@ -1100,7 +1100,7 @@ TEST_F(CtrlChannelDhcpv6SrvTest, configReloadMissingFile) { sendUnixCommand("{ \"command\": \"config-reload\" }", response); // Verify the reload was rejected. - EXPECT_EQ("{ \"result\": 1, \"text\": \"Config reload failed:" + EXPECT_EQ("{ \"result\": 1, \"text\": \"Config reload failed: " "configuration error using file 'test6.json': Unable to open file " "test6.json\" }", response); @@ -1126,7 +1126,7 @@ TEST_F(CtrlChannelDhcpv6SrvTest, configReloadBrokenFile) { sendUnixCommand("{ \"command\": \"config-reload\" }", response); // Verify the reload will fail. - EXPECT_EQ("{ \"result\": 1, \"text\": \"Config reload failed:" + EXPECT_EQ("{ \"result\": 1, \"text\": \"Config reload failed: " "configuration error using file 'test7.json': " "test7.json:1.1: Invalid character: g\" }", response);