mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-21 01:25:49 +02:00
Add 'interface 6to4' path, allows manage 6to4 tunnels like HE (#342)
This commit is contained in:
parent
575af30d88
commit
388366542d
4 changed files with 23 additions and 0 deletions
2
changelogs/fragments/342-add-interface-6to4.yml
Normal file
2
changelogs/fragments/342-add-interface-6to4.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- api_info, api_modify - add the ``interface 6to4`` path. Used to manage IPv6 tunnels via tunnel-brokers like HE, where native IPv6 is not provided (https://github.com/ansible-collections/community.routeros/pull/342).
|
|
@ -226,6 +226,25 @@ def join_path(path):
|
|||
# 3. All bold attributes go into the `primary_keys` list -- this is not always true!
|
||||
|
||||
PATHS = {
|
||||
('interface', '6to4'): APIData(
|
||||
unversioned=VersionedAPIData(
|
||||
fully_understood=True,
|
||||
primary_keys=('name', ),
|
||||
fields={
|
||||
'clamp-tcp-mss': KeyInfo(default=True),
|
||||
'comment': KeyInfo(can_disable=True, remove_value=''),
|
||||
'disabled': KeyInfo(default=False),
|
||||
'dont-fragment': KeyInfo(default=False),
|
||||
'dscp': KeyInfo(default='inherit'),
|
||||
'ipsec-secret': KeyInfo(can_disable=True),
|
||||
'keepalive': KeyInfo(default='10s,10', can_disable=True),
|
||||
'local-address': KeyInfo(default='0.0.0.0'),
|
||||
'mtu': KeyInfo(default='auto'),
|
||||
'name': KeyInfo(),
|
||||
'remote-address': KeyInfo(required=True),
|
||||
}
|
||||
),
|
||||
),
|
||||
('interface', 'bonding'): APIData(
|
||||
unversioned=VersionedAPIData(
|
||||
fully_understood=True,
|
||||
|
|
|
@ -53,6 +53,7 @@ options:
|
|||
- caps-man provisioning
|
||||
- caps-man security
|
||||
- certificate settings
|
||||
- interface 6to4
|
||||
- interface bonding
|
||||
- interface bridge
|
||||
- interface bridge mlag
|
||||
|
|
|
@ -64,6 +64,7 @@ options:
|
|||
- caps-man provisioning
|
||||
- caps-man security
|
||||
- certificate settings
|
||||
- interface 6to4
|
||||
- interface bonding
|
||||
- interface bridge
|
||||
- interface bridge mlag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue