Sean Cavanaugh
Technical Marketing Manager, Ansible
seanc@redhat.com
Beginner's Guide to NetDevOps with
Cisco DevNet and Ansible
Hank Preston
Developer Evangelist, Cisco
hapresto@cisco.com
WHAT WE’RE TALKING ABOUT TODAY
2.5 Announcement
Red Hat Summit
Ansible Automates
Ansiblefest 2018
NetDevOps with Cisco’s Hank Preston
- Cisco IOS-XE
- Cisco NX-OS
- Cisco ACI
- What to do next?
Q/A
Installation Directions:
docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
Ansible 2.5 Porting Guide:
docs.ansible.com/ansible/2.5/porting_guides/porting_guide_2.5.html
Ansible 2.5 Networking Features Blog:
www.ansible.com/blog/coming-soon-networking-features-in-ansible-2.5
Ansible 2.5 has launched
network_cli and netconf are top level connection methods!
Look, Feel and Operate like Ansible
Provider method is no longer needed
---
- hosts: rtr1
connection: network_cli
remote_user: admin
become: yes
become_method: enable
tasks:
- name: Backup Configuration
ios_config:
backup: yes
For more information or to register visit: ansible.com/automates
Washington D.C.
April 19th, 2018
Tokyo, Japan
April 24, 2018
Kuala Lumpur, Malaysia
April 19th, 2018
April 30- May 4
Booth 1120
Hybrid Cloud Network
Interconnect with Ansible
Steven Carter, Principal Solutions Architect
Peter Sprygada, Distinguished Engineer
Tuesday, May 8 @ 11:45AM
May 8-10
Top 3 F5 BIG-IP and
Ansible Use Cases
Eric Mcleroy, Sr. Solutions Architect
Wednesday, May 9 @ 4:30PM
Booth 849
August 13-16, Boston, MA
October 2-3
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
• Ansible + Cisco Scope
• Demo: NetDevOps
Configuration Management
with Ansible
• What to do next!
Review
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
• ACI
http://bit.ly/ansible-aci
• AireOS
http://bit.ly/ansible-aireos
• ASA
http://bit.ly/ansible-asa
• IOS
http://bit.ly/ansible-ios
• IOS XR
http://bit.ly/ansible-iosxr
• NX OS
http://bit.ly/ansible-nxos
• NETCONF
http://bit.ly/ansible-netconf
• NSO
http://bit.ly/ansible-nso
• UCS
http://bit.ly/ansible-ucs
What can you do with Ansible + Cisco?
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
• Physical Topology
• “Core” – IOS XE Routers
• “Distribution” – NX-OS Switches
• “Access” – NX-OS Switches
• Network has been cabled
already
• Management access to devices
enabled
• No other configuration completed
Starting Network Topology
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
• Layer 3 Links between Core/Dist
• OSPF Area 0 Routing Configured
• Distribution configured for VPC
Domain
• Layer 2 port-channel trunk to
access
• Set of VLANs Configured
• SVIs at Distribution with HSRP
Configured
Desired Network Configuration
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
• Inventory File
• List network devices
• Connection details
• Logically grouped for configuration
• Host/Group Variable Files
• Device specific details
• General group details
• Ansible Roles
• Align to network roles
• Ansible Playbook
• Run roles against relevant groups
Use our Ansible Mastery!
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
• Network Policy: Bridge Domains, VRFs, etc
• Application Policy: App Profiles, EPGs, Contracts, etc
ACI Application Policy with Ansible
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
• Resources
• Network Automation with Ansible
(ansible.com)
• Ansible Network Modules
(ansible.com)
• Networking Support Docs
(ansible.com)
• Do the Demo Yourself!
• https://github.com/hpreston/netdevops_demos
• DevNet Learning Labs
• Introduction to Ansible
• Using Ansible with NX-OS Devices
• Introduction to ACI and Ansible
• Home Lab: Using Ansible from your
Desktop OS
• Blogs and Videos
• What does "Network as Code" Mean?
• Automating Cisco ACI with Ansible
Eliminates Repetitive Day-to-Day Tasks
• NetDevOps Video Module
What do do next?
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Got more questions? Stay in touch!
hapresto@cisco.com
@hfpreston
http://github.com/hpreston
@CiscoDevNet
facebook.com/ciscodevnet/
http://github.com/CiscoDevNet
Hank Preston developer.cisco.com
19
Q / A
ansible-network@redhat.com
github.com/network-automation
facebook.com/ansibleautomation
twitter.com/ansible
+

Beginner's guide to net devops with cisco devnet and ansible

  • 1.
    Sean Cavanaugh Technical MarketingManager, Ansible seanc@redhat.com Beginner's Guide to NetDevOps with Cisco DevNet and Ansible Hank Preston Developer Evangelist, Cisco hapresto@cisco.com
  • 2.
    WHAT WE’RE TALKINGABOUT TODAY 2.5 Announcement Red Hat Summit Ansible Automates Ansiblefest 2018 NetDevOps with Cisco’s Hank Preston - Cisco IOS-XE - Cisco NX-OS - Cisco ACI - What to do next? Q/A
  • 3.
    Installation Directions: docs.ansible.com/ansible/latest/installation_guide/intro_installation.html Ansible 2.5Porting Guide: docs.ansible.com/ansible/2.5/porting_guides/porting_guide_2.5.html Ansible 2.5 Networking Features Blog: www.ansible.com/blog/coming-soon-networking-features-in-ansible-2.5 Ansible 2.5 has launched network_cli and netconf are top level connection methods!
  • 4.
    Look, Feel andOperate like Ansible Provider method is no longer needed --- - hosts: rtr1 connection: network_cli remote_user: admin become: yes become_method: enable tasks: - name: Backup Configuration ios_config: backup: yes
  • 5.
    For more informationor to register visit: ansible.com/automates Washington D.C. April 19th, 2018 Tokyo, Japan April 24, 2018 Kuala Lumpur, Malaysia April 19th, 2018
  • 6.
    April 30- May4 Booth 1120
  • 7.
    Hybrid Cloud Network Interconnectwith Ansible Steven Carter, Principal Solutions Architect Peter Sprygada, Distinguished Engineer Tuesday, May 8 @ 11:45AM May 8-10 Top 3 F5 BIG-IP and Ansible Use Cases Eric Mcleroy, Sr. Solutions Architect Wednesday, May 9 @ 4:30PM
  • 8.
  • 9.
  • 10.
  • 11.
    © 2018 Ciscoand/or its affiliates. All rights reserved. Cisco Public © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public • Ansible + Cisco Scope • Demo: NetDevOps Configuration Management with Ansible • What to do next! Review
  • 12.
    © 2018 Ciscoand/or its affiliates. All rights reserved. Cisco Public • ACI http://bit.ly/ansible-aci • AireOS http://bit.ly/ansible-aireos • ASA http://bit.ly/ansible-asa • IOS http://bit.ly/ansible-ios • IOS XR http://bit.ly/ansible-iosxr • NX OS http://bit.ly/ansible-nxos • NETCONF http://bit.ly/ansible-netconf • NSO http://bit.ly/ansible-nso • UCS http://bit.ly/ansible-ucs What can you do with Ansible + Cisco?
  • 13.
    © 2018 Ciscoand/or its affiliates. All rights reserved. Cisco Public • Physical Topology • “Core” – IOS XE Routers • “Distribution” – NX-OS Switches • “Access” – NX-OS Switches • Network has been cabled already • Management access to devices enabled • No other configuration completed Starting Network Topology
  • 14.
    © 2018 Ciscoand/or its affiliates. All rights reserved. Cisco Public • Layer 3 Links between Core/Dist • OSPF Area 0 Routing Configured • Distribution configured for VPC Domain • Layer 2 port-channel trunk to access • Set of VLANs Configured • SVIs at Distribution with HSRP Configured Desired Network Configuration
  • 15.
    © 2018 Ciscoand/or its affiliates. All rights reserved. Cisco Public • Inventory File • List network devices • Connection details • Logically grouped for configuration • Host/Group Variable Files • Device specific details • General group details • Ansible Roles • Align to network roles • Ansible Playbook • Run roles against relevant groups Use our Ansible Mastery!
  • 16.
    © 2018 Ciscoand/or its affiliates. All rights reserved. Cisco Public • Network Policy: Bridge Domains, VRFs, etc • Application Policy: App Profiles, EPGs, Contracts, etc ACI Application Policy with Ansible
  • 17.
    © 2018 Ciscoand/or its affiliates. All rights reserved. Cisco Public • Resources • Network Automation with Ansible (ansible.com) • Ansible Network Modules (ansible.com) • Networking Support Docs (ansible.com) • Do the Demo Yourself! • https://github.com/hpreston/netdevops_demos • DevNet Learning Labs • Introduction to Ansible • Using Ansible with NX-OS Devices • Introduction to ACI and Ansible • Home Lab: Using Ansible from your Desktop OS • Blogs and Videos • What does "Network as Code" Mean? • Automating Cisco ACI with Ansible Eliminates Repetitive Day-to-Day Tasks • NetDevOps Video Module What do do next?
  • 18.
    © 2018 Ciscoand/or its affiliates. All rights reserved. Cisco Public Got more questions? Stay in touch! hapresto@cisco.com @hfpreston http://github.com/hpreston @CiscoDevNet facebook.com/ciscodevnet/ http://github.com/CiscoDevNet Hank Preston developer.cisco.com
  • 19.