This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "tempfile" | |
require "vagrant/util/shell_quote" | |
module VagrantPlugins | |
module GuestLinux | |
module Cap | |
class PublicKey | |
def self.insert_public_key(machine, contents) | |
comm = machine.communicate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo wget -O /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/plugins/guests/linux/cap/public_key.rb https://gist.githubusercontent.com/seanx820/38d0e93c06d5147ccf6906a5f7885d8a/raw/c3bcf6aa771d3ba2e7b8df5d17fafaa41c011855/public_key.rb | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the redis setup specific to bgpclos topology | |
# Install and configure redis with sentinel | |
--- | |
- hosts: localhost leaf spine | |
gather_facts: False | |
tasks: | |
- name: Gather BGP Adjanceny info in JSON format | |
local_action: command netq show bgp json | |
register: result | |
#delegate_to: localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: leaf01,leaf03 | |
become: yes | |
tasks: | |
- name: check current quagga version for EVPN | |
command: "systemctl status vxrd.service" | |
register: lnvstate | |
failed_when: ansible_lsb.release != "3.3.2" | |
- name: debug lnvstate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: arista | |
remote_user: admin | |
become: yes | |
become_method: enable | |
vars: | |
ansible_network_os: "eos" | |
tasks: | |
- eos_vlan: | |
state: active |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: arista | |
connection: network_cli | |
tasks: | |
- eos_command: | |
commands: | |
- routing-context vrf blah | |
- show routing-context vrf | |
register: output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[defaults] | |
connection = smart | |
timeout = 60 | |
inventory = /home/student1/networking-workshop/lab_inventory/hosts | |
host_key_checking = False | |
private_key_file = ~/.ssh/aws-private.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[hosts] | |
netlab01 ansible_host=147.75.67.177 | |
netlab02 ansible_host=147.75.67.193 | |
netlab03 ansible_host=147.75.67.213 | |
netlab04 ansible_host=147.75.67.237 | |
netlab05 ansible_host=147.75.78.111 | |
netlab06 ansible_host=147.75.78.181 | |
netlab07 ansible_host=147.75.78.203 | |
netlab08 ansible_host=147.75.78.237 | |
netlab09 ansible_host=147.75.72.199 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#GO FIND CORRECT AMI (filter by name & architecture) | |
- name: find ami for f5 (F5 MODE) | |
ec2_ami_facts: | |
region: us-east-1 | |
owners: 679593333241 | |
filters: | |
name: 'F5 Networks Prelicensed Hourly BIGIP-13.1*Good 25MBPS*' | |
architecture: x86_64 | |
register: amis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
routing-options { | |
autonomous-system 65001; | |
} | |
protocols { | |
bgp { | |
group to-cisco { | |
type external; | |
multihop { | |
ttl 255; | |
} |
OlderNewer