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
SR Linux is the industry's most modern Network Operating System (NOS) enabling unmatched automation and programmability features. One of its capabilities is the ability to customize the CLI on SR Linux.
5
+
SR Linux is the industry's most modern Network Operating System (NOS) enabling unmatched automation and programmability features. One of its capabilities is the ability to [customize the CLI](index.md) on SR Linux.
6
6
7
-
All SR Linux CLI `show` commands shipped with the software are written in executable python scripts leveraging the state yang models.
7
+
All `show` commands shipped with the SR Linux software are written in executable python scripts leveraging the model-driven infrastructure to query the state.
8
8
9
-
Users are allowed to take those python scripts, modify them to fit their use case or build a brand new CLI command leveraging the same state models.
9
+
Users are allowed to take those python scripts, modify them to fit their use case or build a brand new CLI command leveraging the same workflow as our R&D team.
10
+
These user-provided CLI scripts are called **Custom CLI plugins** in SR Linux.
10
11
11
-
These customized CLI scripts are called **Custom CLI plugins** in SR Linux.
12
-
13
-
Since everything is modeled in yang from the ground up, this allows the user to use CLI to access any state object or attribute in the system and display it in the format they are familiar with.
14
-
15
-
So a valid question arises:
16
-
17
-
/// admonition | Question
18
-
type: question
19
-
20
-
Can we make SR Linux CLI look and feel like another NOS for show commands?
21
-
///
12
+
Since everything in SR Linux is modeled in YANG from the ground up, this allows the user to accesses any state object or attribute in the system and display it in the format they are familiar with.
22
13
14
+
So a valid question arises - can we make SR Linux CLI look and feel like another NOS for show commands?
23
15
The simple answer is a big **YES WE CAN**.
24
16
25
17
Let's take an example for the BGP neighbor show command on 4 different Operating Systems.
26
18
27
19
/// tab | SR Linux
28
20
29
-
```srl
30
-
# show network-instance default protocols bgp neighbor
21
+
```
22
+
$ show network-instance default protocols bgp neighbor
0 commit comments