Created
March 19, 2019 14:19
-
-
Save networkop/6e486da98d06a8f56c4fdb1fb2c63097 to your computer and use it in GitHub Desktop.
cvp-netsim
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
kubectl exec -it acme-dc1s1001-a bash | |
sh-4.2# telnet localhost 23 | |
Trying 127.0.0.1... | |
Connected to localhost. | |
Escape character is '^]'. | |
acme-dc1s1001-a login: |
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
kubectl cp /home/core/cvp_topology.tar.gz k8s-topo:/ |
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/k8s-topo --create lab/cvp_topology.yml | |
INFO:__main__:All data has been uploaded to etcd | |
INFO:__main__:All pods have been created successfully |
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
git clone https://github.com/networkop/cvp-netsim.git && cd cvp-netsim |
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
grep -A 1 custom_image lab/cvp_topology.yml | |
custom_image: | |
dc1: "10.1.1.1:5000/veos:latest" |
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
./ingest.py -f dc1 -v localhost:9443 cvpadmin cvppassword |
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
kubectl get pods | |
NAME READY STATUS RESTARTS AGE | |
etcd0 1/1 Running 0 2d12h | |
etcd1 1/1 Running 0 2d12h | |
etcd2 1/1 Running 0 2d12h | |
internal-docker-registry-7999859b-fm22v 1/1 Running 0 2d12h | |
k8s-topo 1/1 Running 0 2d12h | |
acme-dc1b2001-a 1/1 Running 0 3m27s | |
acme-dc1b2001-b 1/1 Running 0 3m27s | |
acme-dc1l3001-a 1/1 Running 0 3m29s | |
acme-dc1l3001-b 1/1 Running 0 3m28s | |
acme-dc1l3002-a 1/1 Running 0 3m31s | |
acme-dc1l3002-b 1/1 Running 0 3m27s | |
acme-dc1l3003-a 1/1 Running 0 3m31s | |
acme-dc1l3003-b 1/1 Running 0 3m27s | |
acme-dc1l3004-a 1/1 Running 0 3m30s | |
acme-dc1l3004-b 1/1 Running 0 3m29s | |
acme-dc1l3005-a 1/1 Running 0 3m31s | |
acme-dc1l3005-b 1/1 Running 0 3m30s | |
acme-dc1l3006-a 1/1 Running 0 3m30s | |
acme-dc1l3006-b 1/1 Running 0 3m31s | |
acme-dc1l3007-a 1/1 Running 0 3m28s | |
acme-dc1l3007-b 1/1 Running 0 3m31s | |
acme-dc1l3008-a 1/1 Running 0 3m31s | |
acme-dc1l3008-b 1/1 Running 0 3m30s | |
acme-dc1l3009-a 1/1 Running 0 3m29s | |
acme-dc1l3009-b 1/1 Running 0 3m30s | |
acme-dc1l3010-a 1/1 Running 0 3m31s | |
acme-dc1l3010-b 1/1 Running 0 3m30s | |
acme-dc1l3011-a 1/1 Running 0 3m27s | |
acme-dc1l3011-b 1/1 Running 0 3m29s | |
acme-dc1l3012-a 1/1 Running 0 3m31s | |
acme-dc1l3012-b 1/1 Running 0 3m31s | |
acme-dc1l3013-a 1/1 Running 0 3m30s | |
acme-dc1l3013-b 1/1 Running 0 3m31s | |
acme-dc1l3014-a 1/1 Running 0 3m30s | |
acme-dc1l3014-b 1/1 Running 0 3m28s | |
acme-dc1l3015-a 1/1 Running 0 3m31s | |
acme-dc1l3015-b 1/1 Running 0 3m28s | |
acme-dc1l3016-a 1/1 Running 0 3m30s | |
acme-dc1l3016-b 1/1 Running 0 3m29s | |
acme-dc1l3017-a 1/1 Running 0 3m31s | |
acme-dc1l3017-b 1/1 Running 0 3m29s | |
acme-dc1l3018-a 1/1 Running 0 3m30s | |
acme-dc1l3018-b 1/1 Running 0 3m29s | |
acme-dc1l3019-a 1/1 Running 0 3m31s | |
acme-dc1l3019-b 1/1 Running 0 3m31s | |
acme-dc1l3020-a 1/1 Running 0 3m30s | |
acme-dc1l3020-b 1/1 Running 0 3m28s | |
acme-dc1l3021-a 1/1 Running 0 3m27s | |
acme-dc1l3021-b 1/1 Running 0 3m30s | |
acme-dc1l3022-a 1/1 Running 0 3m31s | |
acme-dc1l3022-b 1/1 Running 0 3m27s | |
acme-dc1l3023-a 1/1 Running 0 3m31s | |
acme-dc1l3023-b 1/1 Running 0 3m28s | |
acme-dc1l3024-a 1/1 Running 0 3m31s | |
acme-dc1l3024-b 1/1 Running 0 3m31s | |
acme-dc1l3025-a 1/1 Running 0 3m28s | |
acme-dc1l3025-b 1/1 Running 0 3m27s | |
acme-dc1l3026-a 1/1 Running 0 3m27s | |
acme-dc1l3026-b 1/1 Running 0 3m31s | |
acme-dc1l3027-a 1/1 Running 0 3m31s | |
acme-dc1l3028-a 1/1 Running 0 3m31s | |
acme-dc1s1001-a 1/1 Running 0 3m27s | |
acme-dc1s1001-b 1/1 Running 0 3m31s |
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
scp cvp_topology.tar.gz k8s-lab-node-1:/home/core |
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
rm -rf ./lab && mkdir -p ./lab | |
tar zxvf /cvp_topology.tar.gz -C lab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment