diff --git a/lib/ansible/module_utils/network/junos/argspec/lldp_global/lldp_global.py b/lib/ansible/module_utils/network/junos/argspec/lldp_global/lldp_global.py index bc2e0dec7bb..215d02bae56 100644 --- a/lib/ansible/module_utils/network/junos/argspec/lldp_global/lldp_global.py +++ b/lib/ansible/module_utils/network/junos/argspec/lldp_global/lldp_global.py @@ -37,7 +37,7 @@ class Lldp_globalArgs(object): pass argument_spec = {'config': {'options': {'address': {'type': 'str'}, - 'enable': {'type': 'bool'}, + 'enabled': {'type': 'bool'}, 'hold_multiplier': {'type': 'int'}, 'interval': {'type': 'int'}, 'transmit_delay': {'type': 'int'}}, diff --git a/lib/ansible/modules/network/junos/junos_lldp_global.py b/lib/ansible/modules/network/junos/junos_lldp_global.py index a81580b6991..63105f4d8d0 100644 --- a/lib/ansible/modules/network/junos/junos_lldp_global.py +++ b/lib/ansible/modules/network/junos/junos_lldp_global.py @@ -48,9 +48,9 @@ options: description: The list of link layer discovery protocol attribute configurations type: dict suboptions: - enable: + enabled: description: - - This argument is a boolean value to enable or disable LLDP. + - This argument is a boolean value to enabled or disable LLDP. type: bool interval: description: @@ -126,7 +126,7 @@ EXAMPLES = """ config: address: 20.2.2.2 hold_multiplier: 30 - enable: False + enabled: False state: replaced # After state: diff --git a/test/integration/targets/junos_lldp_global/tests/netconf/replaced.yaml b/test/integration/targets/junos_lldp_global/tests/netconf/replaced.yaml index bb7eb032ecb..8feaf9d2fb7 100644 --- a/test/integration/targets/junos_lldp_global/tests/netconf/replaced.yaml +++ b/test/integration/targets/junos_lldp_global/tests/netconf/replaced.yaml @@ -27,7 +27,7 @@ address: 10.1.1.2 transmit_delay: 500 hold_multiplier: 5 - enable: False + enabled: False - name: Configure initial state for lldp global junos_lldp_global: @@ -46,7 +46,7 @@ address: 10.1.1.2 transmit_delay: 500 hold_multiplier: 5 - enable: False + enabled: False state: replaced register: result diff --git a/test/integration/targets/junos_lldp_global/tests/netconf/rtt.yaml b/test/integration/targets/junos_lldp_global/tests/netconf/rtt.yaml index c7a05a00cdc..83e38871576 100644 --- a/test/integration/targets/junos_lldp_global/tests/netconf/rtt.yaml +++ b/test/integration/targets/junos_lldp_global/tests/netconf/rtt.yaml @@ -53,7 +53,7 @@ address: 10.1.1.2 transmit_delay: 500 hold_multiplier: 5 - enable: False + enabled: False state: replaced register: result