Skip to content

Commit

Permalink
lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
KB-perByte committed Oct 26, 2023
1 parent 34886ef commit f5e37b4
Show file tree
Hide file tree
Showing 22 changed files with 17 additions and 28 deletions.
2 changes: 1 addition & 1 deletion plugins/modules/ios_acl_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
# ip access-group 123 out
# Using DELETED without any config passed
#"(NOTE: This will delete all of configured resource module attributes from each configured interface)"
# "(NOTE: This will delete all of configured resource module attributes from each configured interface)"
# Before state:
# -------------
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/ios_acls.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@
address: 192.168.3.0
wildcard_bits: 255.255.255.0
destination:
any: True
any: true
grant: permit
- grant: deny
protocol_options:
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/ios_banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
- name: Configure banner from file
cisco.ios.ios_banner:
banner: motd
text: "{{ lookup('file', './config_partial/raw_banner.cfg') }}" # Use unix formatted text files (LF not CRLF) to avoid idempotency issues.
text: "{{ lookup('file', './config_partial/raw_banner.cfg') }}" # Use unix formatted text files (LF not CRLF) to avoid idempotency issues.
state: present
- name: Configure the login banner using delimiter
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/ios_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@
# ]
# ]
# }
"""

RETURN = """
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/ios_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@
# permit ip host 192.0.2.2 any log
# permit ip host 192.0.2.3 any log
# permit ip host 192.0.2.4 any log
"""

RETURN = """
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/ios_hostname.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
# Before state:
# -------------
#router-ios#show running-config | section ^hostname
# router-ios#show running-config | section ^hostname
# hostname RouterTest
# Gathered play:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/ios_l3_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,6 @@
# ipv6:
# - address: 2001:db8:0:3::/64
# name: GigabitEthernet0/2
"""

RETURN = """
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/ios_lacp_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,6 @@
# "name": "Port-channel10"
# }
# ]
"""

RETURN = """
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/ios_lag_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
- name: Port-channel20
members:
- member: GigabitEthernet0/3
mode: on
mode: "on"
- name: Port-channel30
members:
- member: GigabitEthernet0/4
Expand Down Expand Up @@ -358,7 +358,7 @@
# channel-group 30 mode active
# Using Deleted without any config passed
#"(NOTE: This will delete all of configured LLDP module attributes)"
# "(NOTE: This will delete all of configured LLDP module attributes)"
#
# Before state:
Expand Down
3 changes: 1 addition & 2 deletions plugins/modules/ios_linkagg.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,8 @@
- name: Create aggregate of linkagg definitions
cisco.ios.ios_linkagg:
aggregate:
- { group: 3, mode: on, members: [GigabitEthernet0/1] }
- { group: 3, mode: "on", members: [GigabitEthernet0/1] }
- { group: 100, mode: passive, members: [GigabitEthernet0/2] }
"""

RETURN = """
Expand Down
3 changes: 1 addition & 2 deletions plugins/modules/ios_lldp_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
# lldp reinit 5
# Using Deleted without any config passed
#"(NOTE: This will delete all of configured LLDP module attributes)"
# "(NOTE: This will delete all of configured LLDP module attributes)"
# Before state:
# -------------
Expand Down Expand Up @@ -299,7 +299,6 @@
# "reinit": 3,
# "timer": 10
# }
"""

RETURN = """
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/ios_logging_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@
# Before state:
# -------------
#router-ios#show running-config | section logging
# router-ios#show running-config | section logging
# logging exception 4099
# logging message-counter log
# logging userinfo
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ios_ntp.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,16 @@
auth_key: 15435A030726242723273C21181319000A
auth: true
state: present
"""

RETURN = """
commands:
description: command sent to the device
returned: always
type: list
sample: ["no ntp server 10.0.255.10", "no ntp source Loopback0"]
"""

import re

from ansible.module_utils.basic import AnsibleModule
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/ios_ntp_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@
# Before state:
# -------------
#router-ios#show running-config | section ^ntp
# router-ios#show running-config | section ^ntp
# ntp max-associations 34
# ntp logging
# ntp allow mode control 4
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/ios_ospf_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,6 @@
# transmit_delay: 45
# name: GigabitEthernet0/1
# - name: GigabitEthernet0/0
"""

RETURN = """
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/ios_ospfv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@
passive_interfaces:
default: true
interface:
set_interface: False
set_interface: false
name:
- GigabitEthernet0/1
- GigabitEthernet0/2
Expand Down
2 changes: 0 additions & 2 deletions plugins/modules/ios_prefix_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,6 @@
- afi: ipv4
state: deleted
# Task Output
# -------------
# before:
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/ios_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@
# prompt: true
# slave_log: true
#·After·state:
#·------------
# After state:
# ------------
#
# router-ios#show running-config all | section ^service
# service slave-log
Expand Down
3 changes: 1 addition & 2 deletions plugins/modules/ios_snmp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1848,7 +1848,7 @@
# Before state:
# -------------
#router-ios#show running-config | section ^snmp-server
# router-ios#show running-config | section ^snmp-server
# snmp-server engineID remote 172.16.0.12 udp-port 25 AB0C5342FF0F
# snmp-server user userPaul dev v1 access 24
# snmp-server group mergedGroup v3 auth
Expand Down Expand Up @@ -2554,7 +2554,6 @@
# }
# ]
# }
"""

RETURN = """
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/ios_static_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,6 @@
# tag: 50
# track: 150
# vrf: blue
"""

RETURN = """
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/ios_vlans.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
# 1005 trnet 101005 1500 - - - ibm - 0 0
# Using Deleted without any config passed
#"(NOTE: This will delete all of configured vlans attributes)"
# "(NOTE: This will delete all of configured vlans attributes)"
# Before state:
# -------------
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/ios_vrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@
route_both_ipv6:
- 1:100
- 3:100
"""

RETURN = """
Expand Down

0 comments on commit f5e37b4

Please sign in to comment.