diff --git a/changelogs/fragments/342-add-interface-6to4.yml b/changelogs/fragments/342-add-interface-6to4.yml new file mode 100644 index 00000000..6feb9ca0 --- /dev/null +++ b/changelogs/fragments/342-add-interface-6to4.yml @@ -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 diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index f88950c2..e553d040 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -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, diff --git a/plugins/modules/api_info.py b/plugins/modules/api_info.py index b4af74c0..346a3176 100644 --- a/plugins/modules/api_info.py +++ b/plugins/modules/api_info.py @@ -53,6 +53,7 @@ - caps-man provisioning - caps-man security - certificate settings + - interface 6to4 - interface bonding - interface bridge - interface bridge mlag diff --git a/plugins/modules/api_modify.py b/plugins/modules/api_modify.py index f0ac26dd..ef50293f 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -64,6 +64,7 @@ - caps-man provisioning - caps-man security - certificate settings + - interface 6to4 - interface bonding - interface bridge - interface bridge mlag