Top Banner
v Automating Networking! Do I Have to Start at Ground Zero? Gerard Chami - Technical Support Engineer
21

Automating Networking! Do I Have to Start at Ground Zero?

Jan 22, 2017

Download

Technology

Puppet
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Automating Networking! Do I Have to Start at Ground Zero?

v

Automating Networking! Do I Have to Start at Ground Zero?

Gerard Chami - Technical Support Engineer

Page 2: Automating Networking! Do I Have to Start at Ground Zero?

Me!

2

Gerard ChamiTechnical Support Engineer

[email protected]

Twitter: @gerardchamigithub: https://github.com/gchami

Page 3: Automating Networking! Do I Have to Start at Ground Zero?

What is Cumulus Linux?

3

BIOS and PXEIndustry Standard Server

SERVER OS

NETWORK OSBoot Loader and Industry Standard Switch

Page 4: Automating Networking! Do I Have to Start at Ground Zero?

cumulusnetworks.com

User

Spa

ceArchitecture– Cumulus Linux Operating System as a Platform

4

SwitchDriver

switchd

CPU, RAM, Flash, etc.

Routing Tables

ARPTable

BridgeTable

Ethernet Interfaces

Lin

ux K

erne

l

Automation Monitoring

Third Party/Customer Applications

Network OrchestrationRouting

SuiteBridging VXLAN

Switch SiliconFront Panel Ports

Page 5: Automating Networking! Do I Have to Start at Ground Zero?

cumulusnetworks.com

But Why should we care?

Your choice of a network OS!Provides Hardware ChoiceBuild and Automate on a Linux OSOh and its just Linux!

Treat my switch as a server!

Page 6: Automating Networking! Do I Have to Start at Ground Zero?

Cumulus Networks

▪ Infrastructure as code

▪ Enforcement from central location

▪ Easy change control

Configuration ManagementHot Swap the Whole Switch▪ With automation the

whole switch can be replaced and provisioned

▪ High capacity, fine-grained failure domain

▪ Weeks and months now take seconds

▪ Pods of equipment can be stamped out in multiple locations

Rapid Provisioning

6

NetDevOps: The 90’s called, they want their frosted tips back!

OBM OBM OBM

Page 7: Automating Networking! Do I Have to Start at Ground Zero?

7

Where do we start?

Page 8: Automating Networking! Do I Have to Start at Ground Zero?

cumulusnetworks.com

The Obvious (or is it?)

Git!….Check out our Github for examples!https://github.com/CumulusNetworks

Cumulus Workbench - See this in action! Puppet Forge - Cumulus Linux Modules +

Debian modulesCumulus VX - Play, Test, Develop and deploy

on the free virtual machinesNetDevOps - We will get there!

Page 9: Automating Networking! Do I Have to Start at Ground Zero?

cumulusnetworks.com

Bringing it all together!

Task 1: Installing and booting a Network OSTask 2: Installing Puppet Agent

Page 10: Automating Networking! Do I Have to Start at Ground Zero?

cumulusnetworks.com

ONIE – Open Network Install Environment

Modern, efficient installerNetwork OS installer

• Discovery, transfer, and execution• Implemented through Linux kernel with BusyBox

(OpenWRT-like)

Industry supportEnables open network hardware ecosystemOpen sourceWell-documented

• http://www.onie.org/

10

Page 11: Automating Networking! Do I Have to Start at Ground Zero?

cumulusnetworks.com

Zero Touch Provisioning

Automation option at first Cumulus Linux bootRequest DHCP lease on management networkIf option 239 and URL in response, then:

• Request contents of script at URL• Parse script for CUMULUS-AUTOPROVISIONING• Execute script locally on switch as root (unless previously

successfully run)

Supported languagesBashPerlPythonRuby

11

If eth0 is set to DHCP, Zero Touch Provisioning can be triggered (unless previously successful run) when:

• Switch boots up• eth0 is brought down and up

Page 12: Automating Networking! Do I Have to Start at Ground Zero?

cumulusnetworks.com

ONIE and ZTP Interaction

12

DHCP Request with ONIE Option

DHCP Address with URL for OS Image

DHCP Request with ZTP Option

DHCP Address with ZTP script URL

Pull Puppet Scripts

OS Booted

Baseline Configuration Applied

Device Specific Configuration Applied

Page 13: Automating Networking! Do I Have to Start at Ground Zero?

cumulusnetworks.com

Bringing it all together!

Task 1 => Installing and booting a Network OSTask 2 => Installing Puppet AgentTask 3 => Now What????

Page 14: Automating Networking! Do I Have to Start at Ground Zero?

cumulusnetworks.com

What are we automating!?!

Page 15: Automating Networking! Do I Have to Start at Ground Zero?

Our desired state - Without touching the switch!

15

Install the OS

ZTP Provisioning

Install Puppet agent

Configure MOTD

Configure PTM

Configure interfaces

Configure SVI

Deploy OSPF

Deploy Bridges

Page 16: Automating Networking! Do I Have to Start at Ground Zero?

Modules can be your friends

cumuluslinux/cumulus_interfacescumuluslinux/cumulus_interface_policy

cumuluslinux/cumulus_licensecumuluslinux/cumulus_ports

16

Page 17: Automating Networking! Do I Have to Start at Ground Zero?

Cumulus Networks

Demo Time

17

Page 18: Automating Networking! Do I Have to Start at Ground Zero?

18

Install the OS

ZTP Provisioning

Install Puppet agent

Configure MOTD

Configure PTM

Configure interfaces

Configure SVI

Deploy OSPF

Deploy Bridges

Our desired state - Without touching the switch!

Page 19: Automating Networking! Do I Have to Start at Ground Zero?

Cumulus Networks 19

Cumulus VX

Want to learn networking?No Cumulus Switches? No Problem!

Page 20: Automating Networking! Do I Have to Start at Ground Zero?

Cumulus Networks

Questions

20

Page 21: Automating Networking! Do I Have to Start at Ground Zero?

© 2014 Cumulus Networks. Cumulus Networks, the Cumulus Networks Logo, and Cumulus Linux are trademarks or registered trademarks of Cumulus Networks, Inc. or its affiliates in the U.S. and other countries. Other names may be trademarks of their respective owners. The registered trademark Linux® is used pursuant to a sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis.

Thank You!

21