Skip to content

Instantly share code, notes, and snippets.

@nuthanc
nuthanc / netcfg.yaml
Last active May 26, 2020 07:52
n18 netplan config
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: no
addresses: [10.204.216.194/24]
gateway4: 10.204.216.254
nameservers:
@nuthanc
nuthanc / d2.md
Last active June 3, 2020 06:35
d2 deployment

Setup MAAS and Juju

sudo apt-get install software-properties-common 
sudo add-apt-repository --yes --no-update ppa:maas/2.6 
sudo apt update 
sudo apt install maas -y
dpkg-reconfigure maas-region-controller 
ssh-keygen 
maas createadmin 
deployment:
deployer: juju
orchestrator: openstack
provider_config:
bms:
domainsuffix: englab.juniper.net
ntpserver: 10.204.217.158
ssh_pwd: c0ntrail123
ssh_user: root
@nuthanc
nuthanc / contrail_test_input.yaml
Last active May 20, 2020 13:31
d2's contrail test input for mx connectivity(previous one not working)
deployment:
deployer: juju
orchestrator: openstack
provider_config:
bms:
domainsuffix: englab.juniper.net
ntpserver: 10.204.217.158
ssh_pwd: c0ntrail123
ssh_user: root
@nuthanc
nuthanc / cloudSettings
Last active January 18, 2021 15:50
VS code settings sync
{"lastUpload":"2021-01-18T15:50:31.316Z","extensionVersion":"v3.4.3"}
@nuthanc
nuthanc / run_failed.py
Created May 13, 2020 05:26
Run failed test cases
import requests
import re
import os
import subprocess
subprocess.run(["pip3", "install", "bs4"])
from bs4 import BeautifulSoup
#variables
# target URL to scrap