# Query related to junipernetworks.junos.junos\_interfaces

**URL:** <https://forum.ansible.com/t/query-related-to-junipernetworks-junos-junos-interfaces/34113>\
**Category:** Ansible Project\
**Created:** [October 27, 2020, 5:08am UTC](https://forum.ansible.com/t/query-related-to-junipernetworks-junos-junos-interfaces/34113 "2020-10-27T05:08:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![debasmita\_hazra](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@debasmita\_hazra](https://forum.ansible.com/u/debasmita_hazra)\
**Post date:** [October 27, 2020, 5:08am UTC](https://forum.ansible.com/t/query-related-to-junipernetworks-junos-junos-interfaces/34113/1 "2020-10-27T05:08:52Z")

</div>

Hello All,

I am just starting out with working on Ansible. Hence, my query might be very elementary in nature but I cannot seem to get over it. I am trying to basically disable a port on a Juniper switch using the junos\_interfaces module. However, I run into an error stating the following- **“msg”: “Unsupported parameters for (junos\_interfaces) module: provider Supported parameters include: config, running\_config, state”**

**}**

This is a new module that got introduced in Ansible 2.9. The new module replaced the existing module- junos\_interface (without the s at the end). I can run the playbook using the old module but not the new module. The old module doesn’t need a config parameter, unlike the new one. I’d appreciate any help in understanding how to overcome this error.

Thanks,  
Debasmita

Following are my environment details:

**bash-5.0# ansible --version**

ansible 2.10.2

config file = /project/ansible.cfg

configured module search path = [‘/root/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]

ansible python module location = /usr/lib/python3.8/site-packages/ansible

executable location = /usr/bin/ansible

python version = 3.8.5 (default, Jul 20 2020, 23:11:29) [GCC 9.3.0]

Following is the playbook using the new module:

**bash-5.0# cat port-down-new.yml**

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [October 27, 2020, 6:57am UTC](https://forum.ansible.com/t/query-related-to-junipernetworks-junos-junos-interfaces/34113/2 "2020-10-27T06:57:20Z")

</div>

> Hello All,
> 
> I am just starting out with working on Ansible. Hence, my query might be very elementary in nature but I cannot seem to get over it. I am trying to basically disable a port on a Juniper switch using the junos\_interfaces module. However, I run into an error stating the following- **“msg”: “Unsupported parameters for (junos\_interfaces) module: provider Supported parameters include: config, running\_config, state”**
> 
> **}**
> 
> This is a new module that got introduced in Ansible 2.9. The new module replaced the existing module- junos\_interface (without the s at the end). I can run the playbook using the old module but not the new module. The old module doesn’t need a config parameter, unlike the new one. I’d appreciate any help in understanding how to overcome this error.
> 
> Thanks,  
> Debasmita
> 
> Following are my environment details:
> 
> **bash-5.0# ansible --version**
> 
> ansible 2.10.2
> 
> config file = /project/ansible.cfg
> 
> configured module search path = [‘/root/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
> 
> ansible python module location = /usr/lib/python3.8/site-packages/ansible
> 
> executable location = /usr/bin/ansible
> 
> python version = 3.8.5 (default, Jul 20 2020, 23:11:29) [GCC 9.3.0]
> 
> Following is the playbook using the new module:
> 
> **bash-5.0# cat port-down-new.yml**
> 
> * * *
> 
> - name: “Get Junos OS configuration.”
> 
> hosts: junos
> 
> roles:
> 
> - Juniper.junos
> 
> connection: local
> 
> gather\_facts: no
> 
> tasks:
> 
> - name: Retrieve facts from devices running Junos OS
> 
> **junos\_interfaces:**
> 
> **config:**
> 
> - name: ge-0/0/1
> 
> enabled: no

I think it needs ‘state: merged’ here as well.

[https://docs.ansible.com/ansible/latest/collections/junipernetworks/junos/junos\_interfaces\_module.html#examples](https://docs.ansible.com/ansible/latest/collections/junipernetworks/junos/junos_interfaces_module.html#examples)

---

<div class="post-metadata">

**Author:** ![debasmita\_hazra](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@debasmita\_hazra](https://forum.ansible.com/u/debasmita_hazra)\
**Post date:** [October 27, 2020, 1:27pm UTC](https://forum.ansible.com/t/query-related-to-junipernetworks-junos-junos-interfaces/34113/3 "2020-10-27T13:27:47Z")

</div>

> Hello Dick,

Thanks for looking into this. I get the same error on adding state: merged. I also realized that state: merged is a default parameter and is automatically applied during the playbook execution.

Thanks,  
Debasmita
