|
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 |
2 | 6 |
|
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. |
8 | 12 |
|
9 | | -See [sysrepocfg][4] for information. Examples below will utilize |
| 13 | +See [sysrepocfg][0] for more information. Examples below will utilize: |
10 | 14 |
|
11 | 15 | - `sysrepocfg -I FILE -fjson -d DATABASE` to import/write a JSON |
12 | 16 | formatted configuration file to the specified database. |
@@ -419,7 +423,7 @@ An alternative is to write it to a temporary file, and use `sysrepocfg |
419 | 423 |
|
420 | 424 | The IETF Hardware YANG model has been augmented for ONIE formatted |
421 | 425 | 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* |
423 | 427 | YANG models. |
424 | 428 |
|
425 | 429 | ``` |
@@ -458,5 +462,6 @@ YANG models. |
458 | 462 | ~$ |
459 | 463 | ``` |
460 | 464 |
|
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