Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #117

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/plugins/subnet_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ Parameters

Layer-2 routing domain the vlan belongs to

If you have \ :emphasis:`vlan`\ with same number in different routing domains it need to be set on desired value
If you have \ :emphasis:`vlan`\ with same number in different routing domains it needs to be set on desired value


.. rst-class:: ansible-option-line
Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/subnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
required: false
default: default
vrf:
description: VRF which the sunet should belongs to
description: VRF which the subnet should belongs to
type: str
required: false
parent:
Expand Down Expand Up @@ -236,7 +236,7 @@ def main():

if 'cidr' in module_params:
if '/' not in module_params['cidr']:
module.fail_json(msg='missing prefix lenght in "cidr". Need <ipaddr>/<prefix_lenght>.')
module.fail_json(msg='missing prefix lenght in "cidr". Need <ipaddr>/<prefix_length>.')
else:
IPNetwork = None
if '.' in module_params['cidr'] and ':' not in module_params['cidr']:
Expand All @@ -246,7 +246,7 @@ def main():
IPNetwork = ipaddress.IPv6Network
module_params['mask'] = str(IPNetwork(u'%s' % (module_params['cidr'])).prefixlen)
else:
module.fail_json(msg='wrong formated "cidr". Need <ipaddr>/<prefix_lenght>.')
module.fail_json(msg='wrong formatted "cidr". Need <ipaddr>/<prefix_length>.')
module_params['subnet'] = str(IPNetwork(u'%s' % (module_params['cidr'])).network_address)
del module_params['cidr']

Expand Down
Loading