-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
36 lines (29 loc) · 1015 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.PHONY: restconf-check
restconf-check:
for number in 101 102 103 104 105 106 107 108 109 110 ; do \
curl -k -u cisco:cisco -H "Accept: application/yang-data+json" https://198.18.1.$$number/restconf/data/native/hostname ; \
done
.PHONY: pull
pull:
docker pull dmfigol/jupyter-netdevops:latest
.PHONY: up
up:
docker kill $(shell docker ps -q); \
docker pull dmfigol/jupyter-netdevops:latest; \
docker run -it --rm -d -p 58888:58888 -v ${PWD}/jupyter:/jupyter/ --name=nornir-workshop dmfigol/jupyter-netdevops:latest
.PHONY: start
start:
docker run -it --rm -p 58888:58888 -v ${PWD}/jupyter:/jupyter/ --name=nornir-workshop dmfigol/jupyter-netdevops:latest
.PHONY: stop
stop:
docker kill $(shell docker ps -q)
.PHONY: remove-ssh-keys
remove-ssh-keys:
sed -i "" '/198.18.1/d' ${HOME}/.ssh/known_hosts;
.PHONY: browser
browser:
open "http://localhost:58888/"; \
open "http://localhost:58888/notebooks/workshop.ipynb"
.PHONY: credentials
credentials:
mv session-details.example session-details.txt