support for 'ip ipsec mode-config' (#376)

* Added support for 'ip ipsec mode-config'

* Create 376-ipsec-mode-config.yml

---------

Co-authored-by: Laurent Papier <papier@sdv.fr>
This commit is contained in:
SdVSysAdmin 2025-06-13 08:10:27 +02:00 committed by GitHub
parent 88806047e3
commit 49e4b83594
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 19 additions and 5 deletions

View file

@ -0,0 +1,3 @@
minor_changes:
- api_modify, api_info - support API path ``ip ipsec mode-config``
(https://github.com/ansible-collections/community.routeros/pull/376).

View file

@ -652,13 +652,22 @@ PATHS = {
),
('ip', 'ipsec', 'mode-config'): APIData(
unversioned=VersionedAPIData(
unknown_mechanism=True,
# primary_keys=('default', ),
fully_understood=True,
primary_keys=('name', ),
versioned_fields=[
([('6.43', '>=')], 'responder', KeyInfo(default=False)),
([('6.44', '>=')], 'address', KeyInfo(can_disable=True, remove_value='0.0.0.0')),
],
fields={
'default': KeyInfo(),
'address-pool': KeyInfo(can_disable=True, remove_value='none'),
'address-prefix-length': KeyInfo(),
'comment': KeyInfo(can_disable=True, remove_value=''),
'name': KeyInfo(),
'responder': KeyInfo(),
'use-responder-dns': KeyInfo(),
'split-dns': KeyInfo(can_disable=True, remove_value=''),
'split-include': KeyInfo(can_disable=True, remove_value=''),
'src-address-list': KeyInfo(can_disable=True, remove_value=''),
'static-dns': KeyInfo(can_disable=True, remove_value=''),
'system-dns': KeyInfo(default=False),
},
),
),

View file

@ -148,6 +148,7 @@ options:
- ip firewall service-port
- ip hotspot service-port
- ip ipsec identity
- ip ipsec mode-config
- ip ipsec peer
- ip ipsec policy
- ip ipsec profile

View file

@ -159,6 +159,7 @@ options:
- ip firewall service-port
- ip hotspot service-port
- ip ipsec identity
- ip ipsec mode-config
- ip ipsec peer
- ip ipsec policy
- ip ipsec profile