Add IPv4 DHCP option matcher, minor fixes (#300)

* Fix typos in comment on IPsec policy "template" field

* Move IPv4 DHCP server API data next to other DHCP APIs

* Set default for "force" field on DHCP options

Without the default value removing it from the options after it's been
set once leads to an error:

> Key "force" cannot be removed for name="…"

* Add IPv4 DHCP option matcher

RouterOS 7.4 and newer implement matchers for the Vendor ID provided by
DHCP clients. RouterOS 7.16 will add a new `matching-type` property, but
it's not in a stable release yet.

Upstream documentation:
https://help.mikrotik.com/docs/display/ROS/DHCP#DHCP-Genericmatcher
This commit is contained in:
hansmi 2024-07-21 23:18:31 +02:00 committed by GitHub
parent 5ee2af49b8
commit 8c62d46198
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 57 additions and 33 deletions

View file

@ -134,6 +134,7 @@ options:
- ip dhcp-server
- ip dhcp-server config
- ip dhcp-server lease
- ip dhcp-server matcher
- ip dhcp-server network
- ip dhcp-server option
- ip dhcp-server option sets