Skip to content

Instantly share code, notes, and snippets.

View Mierdin's full-sized avatar

Matt Oswalt Mierdin

View GitHub Profile
TASK: [docker | set up consul] ************************************************
failed: [docker01] => {"failed": true, "parsed": false}
BECOME-SUCCESS-travydmhekgumojmvhaxsudlasfwilzh
Traceback (most recent call last):
File "/home/vagrant/.ansible/tmp/ansible-tmp-1435445713.23-171670802505893/docker", line 3104, in <module>
main()
File "/home/vagrant/.ansible/tmp/ansible-tmp-1435445713.23-171670802505893/docker", line 1449, in main
manager = DockerManager(module)
File "/home/vagrant/.ansible/tmp/ansible-tmp-1435445713.23-171670802505893/docker", line 558, in __init__
docker_api_version=docker.client.DEFAULT_DOCKER_API_VERSION

Practical Network Automation with Ansible and Python

###Matt Oswalt ###@Mierdin ###keepingitclassless.net


Workshop Outline

---
BGPNeighborTable:
rpc: get-bgp-summary-information
item: bgp-information/bgp-peer
key: peer-address
view: BGPNeighborView
BGPNeighborView:
fields:
otheras: peer-as
['config']['interface-vlan']['interface']['vlan']['name']
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Lab for three Linux boxes running Quagga
# Triangle topology
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "trusty64"
<configuration>
{%- if bgp %}
<routing-options>
<autonomous-system operation="replace">
<as-number>{{ bgp.as }}</as-number>
</autonomous-system>
</routing-options>
<protocols>
<bgp operation="replace">
{%- if bgp.advertise is defined %}

Keybase proof

I hereby claim:

  • I am mierdin on github.
  • I am mierdin (https://keybase.io/mierdin) on keybase.
  • I have a public key whose fingerprint is 00C7 E9A2 0246 7786 8A3F 7E3D 384D 2A75 E85B B5E6

To claim this, I am signing this object:

interfaces {
{%- for intf in interfaces %}
{{ intf }} {
{% set items = interfaces[intf] %}
{% set NEEDS_TAGGING = False %}
{% for i in items %}
{% if i.vlan != 0 %}
{% set NEEDS_TAGGING = True %}
root@VSRX-01# show
## Last changed: 2015-02-16 02:08:09 UTC
version 12.1X46-D10.2;
system {
host-name VSRX-01;
root-authentication {
encrypted-password "$1$hw2imc8Y$Epg16gz5l7Thj08lFEE1F0"; ## SECRET-DATA
}
services {
ssh {
git@github.com:Mierdin/ansible-role-quagga.git