You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: EXERCISE-2.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Exercise 2 - Yang, OpenConfig, and gNMI basics
2
2
3
-
This set of exercises is designed to give you more exposure to Yang, OpenConfig,
3
+
This set of exercises is designed to give you more exposure to YANG, OpenConfig,
4
4
and gNMI.
5
5
6
6
## Part 1: Understanding the YANG language
@@ -305,7 +305,7 @@ notification {
305
305
306
306
The schema-less representation provides and `update` for each leaf containing the path to leaf and the value of the leaf. You can confirm that the interface is enabled (set to `true`).
307
307
308
-
Next, we will use can subscript to the ingress unicast packet counters for on `leaf1` coming from `h1a`:
308
+
Next, we will use can subscribe to the ingress unicast packet counters for on `leaf1` coming from `h1a`:
309
309
310
310
```
311
311
$ util/gnmi-cli --grpc-addr localhost:50001 \
@@ -340,7 +340,7 @@ subscribe {
340
340
}
341
341
}
342
342
mode: SAMPLE
343
-
sample_interval: 5000
343
+
sample_interval: 1000
344
344
}
345
345
updates_only: true
346
346
}
@@ -440,10 +440,10 @@ update {
440
440
}
441
441
```
442
442
443
-
In the shell running the Mininet CLI, let's take down the link:
443
+
In the shell running the Mininet CLI, let's take down the interface on `leaf1` connected to `h1a`:
444
444
445
445
```
446
-
mininet> link leaf1 h1a down
446
+
mininet> sh ifconfig leaf1-eth3 down
447
447
```
448
448
449
449
You should see a response in your gNMI CLI window showing that the interface on `leaf1` connected to `h1a` is `DOWN`:
@@ -477,9 +477,9 @@ update {
477
477
}
478
478
```
479
479
480
-
We can bring back the link using the following Mininet command:
480
+
We can bring back the interface using the following Mininet command:
481
481
```
482
-
mininet> link leaf1 h1a up
482
+
mininet> sh ifconfig leaf1-eth3 up
483
483
```
484
484
485
485
You should see another response in your gNMI CLI window that indicates the interface is `UP`.
0 commit comments