Skip to content

Commit 90ec35c

Browse files
committed
doc: retitle ssh+sysrepocfg -> Legacy Scripting
We want to discourage people to use sysrepocfg and instead move to use NETCONF, or even better, RESTCONF. When something's missing we should add it to these two official, and standardized, interfaces. Signed-off-by: Joachim Wiberg <[email protected]>
1 parent f98b00f commit 90ec35c

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

doc/scripting-sysrepocfg.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
# Examples using SSH and sysrepocfg
1+
> [!NOTE]
2+
> This method is a legacy "simple and human-friendly" way to manage the
3+
> system. These days we strongly recommend using [RESTCONF][1] instead.
4+
5+
# Legacy Scripting
26

3-
[sysrepocfg][4] can be used to interact with the YANG models when logged
4-
in to infix. Thus, *set config*, *read config*, *read status* and *RPC*
5-
can be conducted using sysrepocfg for supported YANG models. It is
6-
possible to make configuration changes by operating on the *startup*
7-
database.
7+
Although not the primary interface for Infix, it is possible to interact
8+
with the system using raw [sysrepocfg][0] commands. This way you get to
9+
interact directly with the YANG models when logged in to Infix. Thus, a
10+
*set config*, *read config*, *read status* and an *RPC* can be conducted
11+
using `sysrepocfg` for any supported YANG model.
812

9-
See [sysrepocfg][4] for information. Examples below will utilize
13+
See [sysrepocfg][0] for more information. Examples below will utilize:
1014

1115
- `sysrepocfg -I FILE -fjson -d DATABASE` to import/write a JSON
1216
formatted configuration file to the specified database.
@@ -419,7 +423,7 @@ An alternative is to write it to a temporary file, and use `sysrepocfg
419423

420424
The IETF Hardware YANG model has been augmented for ONIE formatted
421425
production data stored in EEPROMs, if available. For details, see the
422-
[VPD documentation][5] and the *ietf-hardware* and *infix-hardware*
426+
[VPD documentation][2] and the *ietf-hardware* and *infix-hardware*
423427
YANG models.
424428

425429
```
@@ -458,5 +462,6 @@ YANG models.
458462
~$
459463
```
460464

461-
[4]: https://netopeer.liberouter.org/doc/sysrepo/libyang1/html/sysrepocfg.html
462-
[5]: vpd.md
465+
[0]: https://netopeer.liberouter.org/doc/sysrepo/libyang1/html/sysrepocfg.html
466+
[1]: scripting-restconf.md
467+
[2]: vpd.md

0 commit comments

Comments
 (0)