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
cat <<EOF | kubectl apply -f - | |
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: enable-forwarding | |
namespace: submariner-operator | |
spec: | |
selector: | |
matchLabels: | |
app: enable-forwarding |
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
oc create namespace nexodus | |
oc project nexodus | |
oc create serviceaccount -n nexodus nexodus | |
oc adm policy add-scc-to-user -z nexodus privileged | |
cat <<EOF | oc apply -f - | |
--- | |
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: |
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
cat <<EOF | kubectl apply -f - | |
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: disable-offload | |
namespace: submariner-operator | |
spec: | |
selector: | |
matchLabels: | |
app: disable-offload |
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
# @sridhargaddam | |
# this script spawns a daemonSet pod in a k8s cluster to disable tx/rx offloading | |
# on vx-submariner interface created by Submariner route-agents | |
--- | |
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: disable-offload | |
namespace: submariner-operator | |
spec: |
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
# @sridhargaddam | |
# this script spawns a daemonSet pod in a k8s cluster to disable tx/rx offloading | |
# on vx-submariner interface created by Submariner route-agents | |
--- | |
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: disable-offload | |
namespace: submariner-operator | |
spec: |
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 | |
# This is a sample script that automates the creation of necessary neutron resources | |
# and spawning of a VNF as shown in proposal-1. | |
# Usage: | |
# To simply create the necessary Neutron resources run the following command | |
# ./spawnvnf.sh | |
# To create resources and also to Spawn the VNF, run the command | |
# ./spawnvnf.sh vnf | |
# For cleanup, run the command |
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
#!/usr/bin/python | |
""" | |
Cluster Monitor Tool | |
Author: Phillip Shea | |
Updated: 2016-Mar-07 | |
This tool provides real-time visualization of the cluster member roles for all | |
shards in either the config or operational datastore. | |
A file named 'cluster.json' contaning a list of the IP addresses and port numbers |
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
[[local|localrc]] | |
# put the log files in a dir different than the source so they can be manipulated independently | |
SCREEN_LOGDIR=$DEST/logs/screen | |
LOGFILE=$DEST/logs/stack.sh.log | |
LOG_COLOR=True | |
# flip OFFLINE and RECLONE to lock (RECLONE=no) or update the source. | |
OFFLINE=True | |
RECLONE=no | |
HOST_IP=192.10.10.248 | |
# disable everything so we can explicitly enable only what we need |
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
2.1: Define L3VPN instance and associate it with OpenStack admin tenant | |
------------------------------------------------------------------------ | |
export ODL_URL='http://192.168.121.109:8181/restconf' | |
export CT_JSON="Content-Type: application/json" | |
TENANT_UUID=$(openstack project show admin -f value -c id | \ | |
sed 's/\(........\)\(....\)\(....\)\(....\)\(.*\)/\1-\2-\3-\4-\5/') | |
cat << EOF > ./evpn-full.json | |
{ |
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
File /etc/network/interfaces | |
----------------------------- | |
# Loopback interface | |
auto lo | |
iface lo inet loopback | |
address 2.2.2.2/32 | |
# The primary network interface | |
auto eth0 |
NewerOlder