diff --git a/docs/plugins/subnet_module.rst b/docs/plugins/subnet_module.rst index 6e06ddf..332b957 100644 --- a/docs/plugins/subnet_module.rst +++ b/docs/plugins/subnet_module.rst @@ -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 diff --git a/plugins/modules/subnet.py b/plugins/modules/subnet.py index 0efffda..6ddbad4 100644 --- a/plugins/modules/subnet.py +++ b/plugins/modules/subnet.py @@ -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: @@ -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 /.') + module.fail_json(msg='missing prefix lenght in "cidr". Need /.') else: IPNetwork = None if '.' in module_params['cidr'] and ':' not in module_params['cidr']: @@ -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 /.') + module.fail_json(msg='wrong formatted "cidr". Need /.') module_params['subnet'] = str(IPNetwork(u'%s' % (module_params['cidr'])).network_address) del module_params['cidr']