-
Notifications
You must be signed in to change notification settings - Fork 4
/
script.sh
48 lines (38 loc) · 1.15 KB
/
script.sh
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
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# Prepare environment for DEVNET2449 Lab
case "$1" in
1) echo "python cli/show_inventory_to_dict.py"
python cli/show_inventory_to_dict.py
;;
#look at textfsm for show inventory
#python cli/show_inventory_to_dict.py --host 'ad3-3850-1' -u 'kekuhls' -p 'kekuhls'
# will need a different device as vpn likley will break vm comms
2) echo "python cli/show_routes.py"
python cli/show_routes.py
;;
#hard to write fsm for
3) echo "python nc/get_routes.py"
python nc/get_routes.py
;;
4) echo "python nc/get_cpu_info.py"
python nc/get_cpu_info.py
;;
5) echo "python nc/get_interfaces_netconf.py"
python nc/get_interfaces_netconf.py
;;
# look at xml and structure of nc calls
6) echo "python get_ietf_interfaces_schema.py"
python get_ietf_interfaces_schema.py
;;
# look at the YANG
7) echo "python ydk/get_interfaces_ydk.py"
python ydk/get_interfaces_ydk.py
;;
#look over code, simpler, more pythonic, proggrammer interface to network devices
8) echo "python ydk/create_loopback_ydk.py"
python ydk/create_loopback_ydk.py
;;
9) echo "python ydk/delete_loopback_ydk.py"
python ydk/delete_loopback_ydk.py
;;
esac