import random
import string
import json
def get_random_string():
r = random.randint(1,100)
letters = string.ascii_lowercase
result_str = ''.join(random.choice(letters) for i in range(r))
This file contains hidden or 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
int net0 | |
ipv6 nd ra-interval 3 | |
no ipv6 nd suppress-ra | |
! | |
int net1 | |
ipv6 nd ra-interval 3 | |
no ipv6 nd suppress-ra | |
! |
This file contains hidden or 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
package main | |
import ( | |
"flag" | |
"fmt" | |
"math/rand" | |
"net" | |
"net/http" | |
"net/rpc" | |
"strings" |
This file contains hidden or 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
FROM ubuntu:18.04 | |
ARG DEBIAN_FRONTEND=noninteractive | |
ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn | |
# Update Ubuntu Software repository | |
RUN apt update && \ | |
apt-get install -y \ | |
git autoconf automake libtool make libreadline-dev texinfo \ | |
pkg-config libpam0g-dev libjson-c-dev bison flex python3-pip \ | |
libc-ares-dev python3-dev python3-sphinx \ |
This file contains hidden or 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
nodes: | |
- name: R1 | |
image: frr-centos8:latest | |
docker_run_extra_args: --entrypoint bash | |
sysctls: | |
- sysctl: net.vrf.strict_mode=1 | |
- sysctl: net.ipv4.ip_forward=1 | |
- sysctl: net.ipv4.conf.all.rp_filter=0 | |
- sysctl: net.ipv4.conf.default.rp_filter=0 | |
- sysctl: net.ipv6.conf.all.forwarding=1 |
This file contains hidden or 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
preinit: | |
- cmds: | |
- cmd: modprobe vrf | |
nodes: | |
- name: R1 | |
image: nicolaka/netshoot | |
docker_run_extra_args: --entrypoint bash | |
sysctls: | |
- sysctl: net.vrf.strict_mode=1 |
This file contains hidden or 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
nodes: | |
- name: R1 | |
image: slankdev/frr | |
interfaces: | |
- { name: net0, type: direct, args: C1#net0 } | |
- { name: net1, type: direct, args: R2#net1 } | |
- { name: net2, type: direct, args: R3#net2 } | |
- name: R2 | |
image: slankdev/frr | |
interfaces: |
This file contains hidden or 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
nodes: | |
- name: C1 | |
image: alpine:latest | |
interfaces: | |
- { name: net1, type: direct, args: CE#net1 } | |
- name: CE | |
image: frrouting/frr:v8.1.0 | |
docker_run_extra_args: --entrypoint bash | |
interfaces: |
This file contains hidden or 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
make docker-build | |
kind load docker-image ayamaruyama/markdownviewcontroller:latest | |
# if we have change of CRD | |
make install | |
# deploy controller related resources | |
make deploy | |
# restart controller |
This file contains hidden or 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
# https://gyazo.com/43893dd9d7321e8dc0ddcdda878ea6cd | |
nodes: | |
- name: C1 | |
image: itsthenetwork/alpine-tcpdump:latest | |
interfaces: | |
- { name: net1, type: direct, args: C2#net1 } | |
- name: C2 | |
image: itsthenetwork/alpine-tcpdump:latest |
NewerOlder