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())));
}
}
"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",
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
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);
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);
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())));
}
}
"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",
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
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);
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);