mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-20 17:15:46 +02:00
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:
parent
88806047e3
commit
49e4b83594
4 changed files with 19 additions and 5 deletions
3
changelogs/fragments/376-ipsec-mode-config.yml
Normal file
3
changelogs/fragments/376-ipsec-mode-config.yml
Normal 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).
|
|
@ -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),
|
||||
},
|
||||
),
|
||||
),
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue