# Relation between Ansible and SDN

**URL:** <https://forum.ansible.com/t/relation-between-ansible-and-sdn/32732>\
**Category:** Ansible Project\
**Created:** [April 20, 2020, 10:25am UTC](https://forum.ansible.com/t/relation-between-ansible-and-sdn/32732 "2020-04-20T10:25:37Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nabil\_hama](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@nabil\_hama](https://forum.ansible.com/u/nabil_hama)\
**Post date:** [April 20, 2020, 10:25am UTC](https://forum.ansible.com/t/relation-between-ansible-and-sdn/32732/1 "2020-04-20T10:25:37Z")

</div>

Hello,

Please, could explain to me, that is the relation between Ansible and SDN, how it can work together? with what architecture?

thanks in advance

BR

---

<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:** [April 20, 2020, 11:01am UTC](https://forum.ansible.com/t/relation-between-ansible-and-sdn/32732/2 "2020-04-20T11:01:39Z")

</div>

That is a very generic question - can you be (a lot) more specific?

---

<div class="post-metadata">

**Author:** ![nabil\_hama](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@nabil\_hama](https://forum.ansible.com/u/nabil_hama)\
**Post date:** [April 20, 2020, 11:33am UTC](https://forum.ansible.com/t/relation-between-ansible-and-sdn/32732/3 "2020-04-20T11:33:02Z")

</div>

> Hello,
> 
> Thanks Dick for your feedback.

my question is as follow :

I have confusion between the utilization of Ansible and SDN, As long as the SDN offers network automation, optimization and high flexibility, what is the role of Ansible in that network? are two different subjects and work totally separately?

Hope I was more clear

Many thanks in advance

---

<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:** [April 20, 2020, 11:54am UTC](https://forum.ansible.com/t/relation-between-ansible-and-sdn/32732/4 "2020-04-20T11:54:42Z")

</div>

Hi

To me this is still too generic.  
I'll leave it to someone else to answer.

---

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [April 20, 2020, 12:47pm UTC](https://forum.ansible.com/t/relation-between-ansible-and-sdn/32732/5 "2020-04-20T12:47:05Z")

</div>

There is no relationship between Ansible and SDN.

Ansible is a general tool. There may be Ansible modules that allow you to manipulate particular SDNs.

I suggest you start by googling “Ansible SDN” and see where the journey takes you.

Regards, K.

---

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [April 20, 2020, 1:08pm UTC](https://forum.ansible.com/t/relation-between-ansible-and-sdn/32732/6 "2020-04-20T13:08:34Z")

</div>

Hullo Nabil.

---

<div class="post-metadata">

**Author:** ![nabil\_hama](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@nabil\_hama](https://forum.ansible.com/u/nabil_hama)\
**Post date:** [April 20, 2020, 1:59pm UTC](https://forum.ansible.com/t/relation-between-ansible-and-sdn/32732/7 "2020-04-20T13:59:51Z")

</div>

Hello Karl,

Effectively, I google it, I understood for Ansible but not the relation between it and SDN. Apart Cisco who talked about this topic, no other person talking about this subject.

Many thanks for feedback, which very helpful for me.

best regards

---

<div class="post-metadata">

**Author:** ![Albert\_Short](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Albert\_Short](https://forum.ansible.com/u/Albert_Short)\
**Post date:** [April 20, 2020, 2:36pm UTC](https://forum.ansible.com/t/relation-between-ansible-and-sdn/32732/8 "2020-04-20T14:36:20Z")

</div>

There are a number of vendors that use Ansible for SDN automation.

Cisco as you mentioned for ACI & or traditional networking  
Cumulus Networks also uses Ansible  
If you wanted you could use it for NSX but vRa may help you there.

There are git repositories, just need to know where to look 🙂

---

<div class="post-metadata">

**Author:** ![nabil\_hama](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@nabil\_hama](https://forum.ansible.com/u/nabil_hama)\
**Post date:** [April 20, 2020, 2:44pm UTC](https://forum.ansible.com/t/relation-between-ansible-and-sdn/32732/9 "2020-04-20T14:44:08Z")

</div>

Hello Albert,

Thanks a lot for your feedback.

Please do know how it works (using Ansible for SDN automation)? if not, do you know where can I find this details?

Thanks in advance

BR

---

<div class="post-metadata">

**Author:** ![ffirg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ffirg/32/10029_2.png) [@ffirg](https://forum.ansible.com/u/ffirg)\
**Post date:** [April 20, 2020, 4:58pm UTC](https://forum.ansible.com/t/relation-between-ansible-and-sdn/32732/10 "2020-04-20T16:58:58Z")

</div>

Nabil

As with everything Ansible it comes down to the modules- this is a link to the complete list: [https://docs.ansible.com/ansible/latest/modules/list\_of\_all\_modules.html](https://docs.ansible.com/ansible/latest/modules/list_of_all_modules.html)  
Have a look through there for anything SDN related for the solution you’re looking for. There is no such generic ‘sdn’ module(s) so you need to look at vendor specific ones (if they exist)

Regards  
Phil.

---

<div class="post-metadata">

**Author:** ![Albert\_Short](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Albert\_Short](https://forum.ansible.com/u/Albert_Short)\
**Post date:** [April 21, 2020, 6:05am UTC](https://forum.ansible.com/t/relation-between-ansible-and-sdn/32732/11 "2020-04-21T06:05:56Z")

</div>

Nabil,

as Phil has mentioned, Ansible uses modules & depending which vendor’s SDN solution you decide to use, you use the appropriate module.

You can find quite a few Cisco ACI & MSO modules ofr Ansible 2.9 or like in Cumulus just 1 module.

The closest you can get to a ‘SDN’ generic module would likely be the ‘uri’, where you can use the typical POST,DELETE,QUERY functions for API.

I have built Ansible playbooks using both ACI/MSO modules & the ‘uri’ module where either MSO module did not exist (pre-2.9 version) or I created some very specific plays where no module was available & the ‘uri’ fitted the need.

Hope this helps
