|
@@ -1801,16 +1801,18 @@ TaggedStatement tagged_statements[] = {
|
|
|
"VALUES (?,?,?,?,?)"},
|
|
|
|
|
|
// Inserts a single DHCPv4 option into 'dhcp4_options' table.
|
|
|
+ // Using fixed scope_id = 3, which associates an option with host.
|
|
|
{MySqlHostDataSourceImpl::INSERT_V4_OPTION,
|
|
|
"INSERT INTO dhcp4_options(option_id, code, value, formatted_value, space, "
|
|
|
- "persistent, dhcp_client_class, dhcp4_subnet_id, host_id) "
|
|
|
- " VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)"},
|
|
|
+ "persistent, dhcp_client_class, dhcp4_subnet_id, host_id, scope_id) "
|
|
|
+ " VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, 3)"},
|
|
|
|
|
|
// Inserts a single DHCPv6 option into 'dhcp6_options' table.
|
|
|
+ // Using fixed scope_id = 3, which associates an option with host.
|
|
|
{MySqlHostDataSourceImpl::INSERT_V6_OPTION,
|
|
|
"INSERT INTO dhcp6_options(option_id, code, value, formatted_value, space, "
|
|
|
- "persistent, dhcp_client_class, dhcp6_subnet_id, host_id) "
|
|
|
- " VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)"},
|
|
|
+ "persistent, dhcp_client_class, dhcp6_subnet_id, host_id, scope_id) "
|
|
|
+ " VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, 3)"},
|
|
|
|
|
|
// Retrieves host information, IPv6 reservations and both DHCPv4 and
|
|
|
// DHCPv6 options associated with the host. The LEFT JOIN clause is used
|