1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

nmcli: allow IPv4/IPv6 configuration on ipip and sit devices (#3239)

* Allow IPv4/IPv6 configuration on mode "sit" tunnel devices

* Update Unit Test for Allow IPv4/IPv6 configuration on mode "sit" tunnel devices

* Add changelog for Allow IPv4/IPv6 configuration on mode "sit" tunnel devices

* Update changelogs/fragments/3239-nmcli-sit-ip-config-bugfix.yaml

Co-authored-by: Ajpantuso <ajpantuso@gmail.com>

* Added ip4/ip6 configuration arguments for ipip tunnels

Co-authored-by: Ajpantuso <ajpantuso@gmail.com>
This commit is contained in:
zerotens 2021-08-23 06:24:05 +02:00 committed by GitHub
parent 23e7ef0255
commit 1ca9c35010
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- "nmcli - added ip4/ip6 configuration arguments for ``sit`` and ``ipip`` tunnels (https://github.com/ansible-collections/community.general/issues/3238, https://github.com/ansible-collections/community.general/pull/3239)."

View file

@ -1248,6 +1248,8 @@ class Nmcli(object):
'ethernet', 'ethernet',
'generic', 'generic',
'infiniband', 'infiniband',
'ipip',
'sit',
'team', 'team',
'vlan', 'vlan',
'wifi' 'wifi'

View file

@ -388,6 +388,12 @@ TESTCASE_IPIP_SHOW_OUTPUT = """\
connection.id: non_existent_nw_device connection.id: non_existent_nw_device
connection.interface-name: ipip-existent_nw_device connection.interface-name: ipip-existent_nw_device
connection.autoconnect: yes connection.autoconnect: yes
ipv4.ignore-auto-dns: no
ipv4.ignore-auto-routes: no
ipv4.never-default: no
ipv4.may-fail: yes
ipv6.ignore-auto-dns: no
ipv6.ignore-auto-routes: no
ip-tunnel.mode: ipip ip-tunnel.mode: ipip
ip-tunnel.parent: non_existent_ipip_device ip-tunnel.parent: non_existent_ipip_device
ip-tunnel.local: 192.168.225.5 ip-tunnel.local: 192.168.225.5
@ -411,6 +417,12 @@ TESTCASE_SIT_SHOW_OUTPUT = """\
connection.id: non_existent_nw_device connection.id: non_existent_nw_device
connection.interface-name: sit-existent_nw_device connection.interface-name: sit-existent_nw_device
connection.autoconnect: yes connection.autoconnect: yes
ipv4.ignore-auto-dns: no
ipv4.ignore-auto-routes: no
ipv4.never-default: no
ipv4.may-fail: yes
ipv6.ignore-auto-dns: no
ipv6.ignore-auto-routes: no
ip-tunnel.mode: sit ip-tunnel.mode: sit
ip-tunnel.parent: non_existent_sit_device ip-tunnel.parent: non_existent_sit_device
ip-tunnel.local: 192.168.225.5 ip-tunnel.local: 192.168.225.5