Marcin Siodelski
f5e92c69da
[ #2931 ] Fixed host queries
...
Addresses two issues:
- The host query by IPv6 address has been fixed for the case when the
duplicated addresses are allowed
- Corrected fetching vendor options from the host database
2023-06-21 09:59:41 +02:00
Marcin Siodelski
704655fa8e
[ #2931 ] Fixed getting host by IPv6 address
...
Modified the query fetching host by IPv6 address to include all addresses
and options associated with the host.
2023-06-21 09:59:41 +02:00
Razvan Becheriu
7fd93cb0c0
[ #145 ] addressed review comments
2023-05-26 18:41:25 +03:00
Razvan Becheriu
fa5492d4b7
[ #2786 ] 255 bytes client_id and 130 bytes duid
2023-05-09 14:26:04 +03:00
Andrei Pavel
e89d009a3c
[ #549 ] add an implementation for BaseHostDataSource::update
2023-04-19 23:56:01 +03:00
Andrei Pavel
1aa48a32a8
[ #549 ] not strictly related: fix wrong column count for the options tables
...
There's no point in having columns with predetermined values added to
a database exchange object. There's an extra column accounted for in
these columns called scope_id that always has value 3. This bug has no
effect. The extra scope_id is ignored by PgSqlOptionExchange, but in the
MySQL counterpart, a bogus value is sent to the MySQL driver which
itself seems to ignore it. The effects of this bug becomes visible if
you try to add the bind vector, you get an error about not being able to
bind the values, because they're one off starting with the scope_id.
2023-04-19 23:56:01 +03:00
Andrei Pavel
f9a24c2f60
[ #549 ] implement reservation-update
2023-04-19 23:56:00 +03:00
Marcin Godzina
769b3583ab
[ #2809 ] release changes
2023-03-24 23:51:18 +01:00
Francis Dupont
7efe36286c
[ #719 ] Reapplied patch
2023-03-15 13:49:21 +01:00
Razvan Becheriu
9586adef93
[ #2227 ] restore initial packet options
2022-05-19 17:29:57 +00:00
Andrei Pavel
cd64f52014
[ #2290 ] release changes
2022-01-25 18:17:54 +02:00
Francis Dupont
75dfab12f6
[ #34 ] Checkpoint: code done, tests and hook to do
2022-01-06 13:12:40 +01:00
Marcin Siodelski
b4f5a243c6
[ #2094 ] Removed client class insert
...
Removed inserting dhcp client class from host manager. Previously, the
host manager would set dhcp_client_class column to an empty string causing
a referential integrity error with client classes. The column is now set
to null by default.
2021-09-20 23:15:03 +02:00
Razvan Becheriu
43a7304391
[ #1982 ] reverted changes
2021-08-24 14:53:24 +00:00
Razvan Becheriu
0e52c995bc
[ #1982 ] code cleanup
2021-08-24 14:53:24 +00:00
Marcin Siodelski
83a5989497
[ #1928 ] Throw committing not started transaction
2021-07-21 10:49:50 +00:00
Andrei Pavel
fac6fa357c
[ #1917 ] spelling corrections
2021-06-17 13:09:05 +00:00
Razvan Becheriu
7ae26127a6
[ #1850 ] initialize auth_key_length_ in MySqlHostExchange constructor
2021-05-21 12:34:18 +00:00
Razvan Becheriu
d976bf91f3
[ #1621 ] addressed comments
2021-03-29 21:11:29 +03:00
Razvan Becheriu
f37892a82b
[ #1621 ] addressed comments
2021-03-29 21:11:29 +03:00
Razvan Becheriu
0c972256b4
[ #1621 ] add lazy retrieval for connection IOService
2021-03-29 21:10:53 +03:00
Andrei Pavel
c53e135833
[ #1656 ] 1.9.4 release: update copyrights
2021-01-25 13:52:09 +02:00
Andrei Pavel
96f049b111
[ #1656 ] 1.9.4 release: spelling check
2021-01-25 13:52:09 +02:00
Razvan Becheriu
4461337f72
[ #1375 ] addressed review comments
2020-12-09 19:12:47 +02:00
Razvan Becheriu
dff6de1464
[ #1375 ] added unittests for recover db connection with timer
2020-12-09 19:12:46 +02:00
Razvan Becheriu
6195cbfd3e
[ #1375 ] added log messages
2020-12-09 19:12:46 +02:00
Razvan Becheriu
c4c92e27a7
[ #1375 ] added more comments
2020-12-09 19:12:46 +02:00
Razvan Becheriu
959bb775a3
[ #1375 ] implemented db reconnect for cb
2020-12-09 19:12:46 +02:00
Razvan Becheriu
ee896f0f56
[ #1375 ] fixed unittests
2020-12-09 19:12:46 +02:00
Razvan Becheriu
4944bc1c40
[ #1375 ] only recreate host managers that have at least one broken connection
2020-12-09 19:12:46 +02:00
Razvan Becheriu
eaa6810139
[ #1375 ] added dbReconnect to host manager
2020-12-09 19:12:46 +02:00
Razvan Becheriu
99da7a64c2
[ #1375 ] reverted changes
2020-12-09 19:12:46 +02:00
Razvan Becheriu
126579d1d4
[ #1375 ] added IOService to mysql and postgresql connections
2020-12-09 19:12:46 +02:00
Marcin Siodelski
7041e0b50f
[ #1428 ] Final code cleanup
...
- Removed caching from getAllX functions in HostMgr
- Renamed setIPReservationUnique to setIPReservationsUnique
2020-10-05 13:14:58 +00:00
Marcin Siodelski
c6a3f83881
[ #1428 ] Fixed read only tests in MySQL and PgSQL
...
Per review comments.
2020-10-05 13:14:58 +00:00
Marcin Siodelski
1ffba02c72
[ #1428 ] Use SQL select 1 consistently
...
The new INSERT SELECT statements are also better described to explain why
SELECT 1 is used as a result of the review.
2020-10-05 13:14:58 +00:00
Marcin Siodelski
7f6f354c51
[ #1428 ] Added comments in MySQL and PgSQL backends
2020-10-05 13:14:57 +00:00
Marcin Siodelski
1181298f2c
[ #1428 ] Delete multiple hosts by subnet/addr
...
Adjusted behavior of the del(subnet_id, addr) function in MySQL and
Postgres to delete multiple hosts having the same IPv4 or IPv6 address.
The MySQL schema had to be updated to use CASCADE action rather than
trigger to remove dependent options and IPv6 reservations.
2020-10-05 13:14:57 +00:00
Marcin Siodelski
c7e9763582
[ #1428 ] Calls to fetch many hosts by id/address
...
The new calls have been added to the host backends to retrieve multiple
hosts by subnet_id and address.
2020-10-05 13:14:57 +00:00
Marcin Siodelski
99c44ffd31
[ #1428 ] Allow non-unique IPs in MySQL and PgSQL
...
Introduced new host API function which allows for configuring selected
backends to accept non-unique IP reservations for multiple hosts. Support
for it was added in MySQL, Postgres and Kea config file. It is not
supported in Cassandra. New migrations for MySQL and Postgres have been
created.
2020-10-05 13:14:57 +00:00
Francis Dupont
f3e8356a41
[ #1163 ] Checkpoint: updated API
2020-09-22 10:13:23 +02:00
Razvan Becheriu
c8bd5a4693
[ #1380 ] call mysql_autocommit on openDatabase
2020-08-14 12:34:01 +03:00
Francis Dupont
01e10ceba1
[ #1007 ] Replaced some option spaces
2020-08-05 13:58:29 +02:00
Francis Dupont
a41eacaa12
[ #1147 ] Checkpoint: began resources
2020-05-26 11:51:57 +02:00
Francis Dupont
b064001b5a
[ #1160 ] Added a retryer template for MySQL execute functions
2020-04-23 13:13:12 +02:00
Razvan Becheriu
9bcc1e819a
[ #1071 ] always cast to target type
2020-02-21 09:15:14 +01:00
Michal Nowikowski
ba41c187b5
[ #1098 ] updated more copyright dates
2020-01-27 19:52:58 +01:00
Razvan Becheriu
c752f28b2b
[ #1073 ] addressed review
2020-01-27 16:59:48 +02:00
Razvan Becheriu
73c36cf1ca
[ #1073 ] addressed review
2020-01-27 16:57:36 +02:00
Razvan Becheriu
430cefea69
[ #1073 ] addressed review
2020-01-27 16:57:36 +02:00