-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetmiko.yaml
57 lines (51 loc) · 1.91 KB
/
netmiko.yaml
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
49
50
51
52
53
54
55
56
57
# Examples for Custom GPT for network device configuration and show commands
examples:
- description: Example of enabling an interface on a Nokia SR Linux device
request:
host: "172.20.20.2"
device_type: "nokia_srl"
commands:
- "enter candidate"
- "interface ethernet-1/1 admin-state enable"
- "commit now"
- description: Example of disabling an interface on a Nokia SR Linux device
request:
host: "172.20.20.3"
device_type: "nokia_srl"
commands:
- "enter candidate"
- "interface ethernet-1/2 admin-state disable"
- "commit now"
- description: Example of adding a description to an interface on a Nokia SR Linux device
request:
host: "172.20.20.4"
device_type: "nokia_srl"
commands:
- "enter candidate"
- 'interface ethernet-1/1 description "This is a description"'
- "commit now"
- description: Example of running a show command to display all (loopback) interfaces on a Nokia SR Linux device
request:
host: "172.20.20.6"
device_type: "nokia_srl"
commands:
- "show interface"
- description: Example of configuring and enabling loopback interface loX
request:
host: "172.20.20.2"
device_type: "nokia_srl"
commands:
- "enter candidate"
- "set interface lo1 admin-state enable"
- "set interface lo1 subinterface 0 admin-state enable"
- "set interface lo1 subinterface 0 ipv4 address 10.10.10.1/32"
- "set interface lo1 subinterface 0 ipv4 admin-state enable"
- "set network-instance default interface lo1.0"
- "commit now"
- description: Example of verifying loopback interface lo1 (use the right network-instance)
request:
host: "172.20.20.2"
device_type: "nokia_srl"
commands:
- "show interface lo1"
- "ping network-instance default 10.10.10.1 -c 1"