mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
nmcli: Compare MAC addresses case insensitively (#2416)
* nmcli: Compare MAC addresses case insensitively * Update changelogs/fragments/2416-nmcli_compare_mac_addresses_case_insensitively.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/net_tools/nmcli.py Co-authored-by: Felix Fontein <felix@fontein.de> * Add mac to TESTCASE_BRIDGE so test_bridge_connection_unchanged covers case sensitive mac address comparison * Update plugins/modules/net_tools/nmcli.py Co-authored-by: Felix Fontein <felix@fontein.de> * Convert current_value to uppercase as well in case nmcli changes behaviour Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
b5f8ae4320
commit
7359b1fbe5
3 changed files with 9 additions and 1 deletions
|
@ -184,6 +184,7 @@ TESTCASE_BRIDGE = [
|
|||
'ifname': 'br0_non_existant',
|
||||
'ip4': '10.10.10.10/24',
|
||||
'gw4': '10.10.10.1',
|
||||
'mac': '52:54:00:ab:cd:ef',
|
||||
'maxage': 100,
|
||||
'stp': True,
|
||||
'state': 'present',
|
||||
|
@ -200,6 +201,7 @@ ipv4.addresses: 10.10.10.10/24
|
|||
ipv4.gateway: 10.10.10.1
|
||||
ipv4.never-default: no
|
||||
ipv6.method: auto
|
||||
bridge.mac-address: 52:54:00:AB:CD:EF
|
||||
bridge.stp: yes
|
||||
bridge.max-age: 100
|
||||
bridge.ageing-time: 300
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue