mysql_execute "${query}"
assert_eq 1 "${EXIT_CODE}" "${query}: expected %d, returned %d"
- # Makse sure all four SFLQ tables exist.
+ # Make sure all four SFLQ tables exist.
check_table_column start_address flq_pool4
check_table_column address free_lease4
check_table_column start_address flq_pool6
sql="select count(address) from free_lease4 where address = inet_aton(${in_address});"
run_statement "check free_lease4 2" "$sql" "0"
- # Update the lease to be reclalmed.
+ # Update the lease to be reclaimed.
sql="call sflqUpdateLease4(inet_aton($in_address), NULL, NULL, 3600, timestamp('$future'),\
1, 0, 0, NULL, 2, NULL, NULL, NULL, 0)";
run_statement "sflqUpdateLease4 to reclaimed $in_address" "$sql"
run_statement "check free_lease4 3" "$sql" "1"
# Update requires expirations to match. In order to test expiration
- # logic, need to get an expried time stamp and then update the lease
+ # logic, need to get an expired time stamp and then update the lease
# directly setting expire.
sql="select TIMESTAMPADD(SECOND, -3600, CURRENT_TIMESTAMP)"
run_statement "get expired time stamp" "$sql"
sql="select count(address) from free_lease6 where address = $in_address;"
run_statement "check free_lease6 2" "$sql" "0"
- # Update the lease to be reclalmed.
+ # Update the lease to be reclaimed.
state="2"
sql="call sflqUpdateLease6($bin_address, $duid, 3600, timestamp('$future'),\
$subnet_id, 3600, $ltype, $iaid, 128, 0, 0,\
pgsql_execute "${qry}"
assert_eq 3 "${EXIT_CODE}" "select isJsonSupported() should have failed. (expected status code %d, returned %d)"
- # Makse sure all four SFLQ tables exist.
+ # Make sure all four SFLQ tables exist.
check_table_column start_address flq_pool4
check_table_column address free_lease4
check_table_column start_address flq_pool6
sql="select count(address) from free_lease4 where address = $bigint_address;"
run_statement "check free_lease4 2" "$sql" "0"
- # Update the lease to be reclalmed.
+ # Update the lease to be reclaimed.
sql="call sflqUpdateLease4($bigint_address, NULL, NULL, 3600::bigint, '$future'::timestamp,\
1::bigint, 'f'::boolean, 'f'::boolean, NULL,\
2::bigint, NULL, NULL, NULL, 0::bigint)";
run_statement "check free_lease4 3" "$sql" "1"
# Update requires expirations to match. In order to test expiration
- # logic, need to get an expried time stamp and then update the lease
+ # logic, need to get an expired time stamp and then update the lease
# directly setting expire.
sql="select (current_timestamp - make_interval(secs => 3600))"
run_statement "get expired time stamp" "$sql"
sql="select count(address) from free_lease6 where bin_address = $bin_address;"
run_statement "check free_lease6 2" "$sql" "0"
- # Update the lease to be reclalmed.
+ # Update the lease to be reclaimed.
state="2"
sql="call sflqUpdateLease6($in_address::inet, $duid, 3600::bigint, '$future'::timestamp,\
$subnet_id::bigint, 3600::bigint, $ltype::smallint, \
LEAVE SP;
END IF;
- -- Try Mariab variable
+ -- Try Mariadb variable
SET @sqlv = "select @@max_recursive_iterations INTO @kea_recursion_limit";
PREPARE stmt FROM @sqlv;
EXECUTE stmt;
LEAVE SP;
END IF;
- -- Try Mariab variable
+ -- Try Mariadb variable
SET @sqlv = "select @@max_recursive_iterations INTO @kea_recursion_limit";
PREPARE stmt FROM @sqlv;
EXECUTE stmt;
CREATE OR REPLACE PROCEDURE sflqCreateFlqPool6(p_start_address INET,
p_end_address INET,
p_lease_type SMALLINT,
- p_delegated_len SMALLiNT,
+ p_delegated_len SMALLINT,
p_subnet_id BIGINT,
p_recreate BOOLEAN)
LANGUAGE plpgsql AS $$
CREATE OR REPLACE PROCEDURE sflqCreateFlqPool6(p_start_address INET,
p_end_address INET,
p_lease_type SMALLINT,
- p_delegated_len SMALLiNT,
+ p_delegated_len SMALLINT,
p_subnet_id BIGINT,
p_recreate BOOLEAN)
LANGUAGE plpgsql AS \$\$