Network automation for non-networking experts



Network automation for non-networking experts

0 0


pres-puppetcamp-mel-15


On Github cgascoig / pres-puppetcamp-mel-15

Network automation for non-networking experts

Chris Gascoigne

cgascoig@cisco.com

http://cgascoig.github.io/pres-puppetcamp-mel-15

Agenda

  • Introduction
  • Network device automation
  • Policy based automation

Device automation

Open NX-OS

  • Bootstrap and provisioning - PoAP / ONIE / PXE
  • Package management - RPM / YUM
  • Standard Linux interfaces - Bash / iproute2 / ...
  • Adaptable and extensible - Containers / 3rd-party software
  • Automatable - NX-API / Python
  • Automation tools - Puppet / OpenStack / ...

Puppet

  • Native agent - install by RPM from PuppetLabs
  • Runs mcollective
  • Run as a service with init scripts

ciscopuppet module

cisco_vtp cisco_ospf_vrf cisco_tacacs_server cisco_vlan cisco_tacacs_server_host cisco_bgp cisco_snmp_server cisco_bgp_vrf cisco_snmp_community cisco_interface cisco_snmp_group cisco_interface_ospf cisco_ospf cisco_interface_vlan

netdev_stdlib

domain_name name_server network_dns network_snmp ntp_config ntp_server radius radius_global radius_server syslog_server syslog_setting

cisco_command_config

class network_devices::vni ($vlan, $vnsegment) {
  cisco_command_config { "vni-$vnsegment-$vlan":
    command => "
      vlan $vlan
        vn-segment $vnsegment
    "
  }
}
          

Demo

Policy based automation

Who cares about ... VLANs? ... SVIs? ... VRFs?

https://twitter.com/vjswami/status/665326107709845508

Abstraction - Puppet application orchestration

Abstraction - Docker compose

Language barriers

Group based policy

https://wiki.opendaylight.org/view/Group_Based_Policy_(GBP)

https://wiki.openstack.org/wiki/GroupBasedPolicy

Group based policy - ACI

puppet-aci

Demo

Summary

  • Device level automation
  • Policy based automation
  • Group based policy

Thank you

Network automation for non-networking experts Chris Gascoigne cgascoig@cisco.com http://cgascoig.github.io/pres-puppetcamp-mel-15