networka 0.2.0__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. {networka-0.2.0 → networka-0.4.0}/.gitignore +6 -0
  2. {networka-0.2.0 → networka-0.4.0}/PKG-INFO +29 -66
  3. {networka-0.2.0 → networka-0.4.0}/README.md +25 -41
  4. networka-0.4.0/docs/adding-platforms.md +110 -0
  5. networka-0.4.0/docs/backups.md +22 -0
  6. {networka-0.2.0 → networka-0.4.0}/docs/configuration.md +52 -58
  7. {networka-0.2.0 → networka-0.4.0}/docs/development/networka-release-qualification.md +13 -1
  8. {networka-0.2.0 → networka-0.4.0}/docs/development/networka-upgrade-plan.md +2 -2
  9. {networka-0.2.0 → networka-0.4.0}/docs/development/platform-registry-explanations.md +6 -2
  10. {networka-0.2.0 → networka-0.4.0}/docs/development/platform-registry-implementation-plan.md +38 -15
  11. networka-0.4.0/docs/development.md +193 -0
  12. {networka-0.2.0 → networka-0.4.0}/docs/environment-variables.md +5 -1
  13. networka-0.4.0/docs/examples/intent/README.md +217 -0
  14. networka-0.4.0/docs/examples/intent/compare.py +341 -0
  15. networka-0.4.0/docs/examples/recipes.md +35 -0
  16. {networka-0.2.0 → networka-0.4.0}/docs/examples/user_sequences/README.md +6 -5
  17. {networka-0.2.0 → networka-0.4.0}/docs/file_upload.md +5 -5
  18. networka-0.4.0/docs/getting-started.md +72 -0
  19. {networka-0.2.0 → networka-0.4.0}/docs/index.md +11 -16
  20. {networka-0.2.0 → networka-0.4.0}/docs/interactive-credentials.md +1 -1
  21. networka-0.4.0/docs/ip-address-support.md +67 -0
  22. networka-0.4.0/docs/library/adhoc-targets.md +61 -0
  23. {networka-0.2.0 → networka-0.4.0}/docs/library/index.md +5 -9
  24. networka-0.4.0/docs/library/quickstart.md +60 -0
  25. {networka-0.2.0 → networka-0.4.0}/docs/library/recipes.md +66 -67
  26. {networka-0.2.0 → networka-0.4.0}/docs/library/sessions.md +24 -13
  27. {networka-0.2.0 → networka-0.4.0}/docs/multi-vendor-support.md +42 -47
  28. {networka-0.2.0 → networka-0.4.0}/docs/nornir-inventory.md +6 -3
  29. networka-0.4.0/docs/output-modes.md +33 -0
  30. {networka-0.2.0 → networka-0.4.0}/docs/overrides/home.html +3 -2
  31. networka-0.4.0/docs/platform-compatibility.md +38 -0
  32. {networka-0.2.0 → networka-0.4.0}/docs/reference/cli.md +103 -99
  33. {networka-0.2.0 → networka-0.4.0}/docs/reference/introspection.md +14 -9
  34. networka-0.4.0/docs/results.md +49 -0
  35. {networka-0.2.0 → networka-0.4.0}/docs/running-commands.md +16 -6
  36. {networka-0.2.0 → networka-0.4.0}/docs/scrapli-platform-expansion-plan.md +3 -4
  37. {networka-0.2.0 → networka-0.4.0}/docs/shell-completion.md +4 -5
  38. {networka-0.2.0 → networka-0.4.0}/docs/ssh-config-sync.md +6 -2
  39. {networka-0.2.0 → networka-0.4.0}/docs/tmux-ssh.md +19 -45
  40. {networka-0.2.0 → networka-0.4.0}/docs/transport.md +17 -2
  41. networka-0.4.0/docs/troubleshooting.md +55 -0
  42. {networka-0.2.0 → networka-0.4.0}/docs/vendors/arista/index.md +4 -2
  43. {networka-0.2.0 → networka-0.4.0}/docs/vendors/cisco/index.md +13 -12
  44. {networka-0.2.0 → networka-0.4.0}/docs/vendors/index.md +2 -2
  45. {networka-0.2.0 → networka-0.4.0}/docs/vendors/juniper/index.md +3 -1
  46. {networka-0.2.0 → networka-0.4.0}/docs/vendors/mikrotik/index.md +6 -10
  47. {networka-0.2.0 → networka-0.4.0}/docs/vendors/nokia/index.md +3 -1
  48. {networka-0.2.0 → networka-0.4.0}/pyproject.toml +11 -65
  49. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/__about__.py +1 -1
  50. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/__init__.py +7 -0
  51. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/api/diff.py +23 -13
  52. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/api/execution.py +1 -5
  53. networka-0.4.0/src/network_toolkit/api/info.py +93 -0
  54. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/api/list.py +26 -47
  55. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/api/run.py +72 -41
  56. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/api/upload.py +4 -0
  57. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/banner.py +11 -16
  58. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/cli.py +11 -70
  59. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/client.py +5 -2
  60. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/backup.py +0 -1
  61. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/complete.py +19 -52
  62. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/config.py +15 -39
  63. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/diff.py +0 -1
  64. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/download.py +0 -1
  65. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/firmware.py +0 -1
  66. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/info.py +56 -130
  67. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/list.py +28 -25
  68. networka-0.4.0/src/network_toolkit/commands/platforms.py +264 -0
  69. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/routerboard_upgrade.py +0 -1
  70. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/run.py +18 -17
  71. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/schema.py +0 -1
  72. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/ssh.py +2 -3
  73. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/sync_ssh.py +0 -1
  74. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/upload.py +6 -11
  75. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/vendor_config_backup.py +0 -1
  76. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/common/command_helpers.py +27 -25
  77. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/common/defaults.py +2 -1
  78. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/common/logging.py +1 -16
  79. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/common/output.py +77 -175
  80. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/common/styles.py +4 -10
  81. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/common/table_generator.py +28 -15
  82. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/common/table_providers.py +51 -181
  83. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/config.py +168 -222
  84. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/credentials.py +4 -8
  85. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/device.py +29 -7
  86. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/exceptions.py +0 -6
  87. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/inventory/nornir_simple.py +1 -0
  88. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/inventory/ssh_config.py +6 -2
  89. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/ip_device.py +16 -19
  90. networka-0.4.0/src/network_toolkit/sequence_manager.py +302 -0
  91. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/session_pool.py +10 -0
  92. networka-0.4.0/src/network_toolkit/transport/factory.py +50 -0
  93. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/transport/scrapli_sync.py +52 -2
  94. networka-0.2.0/docs/adding-platforms.md +0 -799
  95. networka-0.2.0/docs/backups.md +0 -33
  96. networka-0.2.0/docs/development.md +0 -340
  97. networka-0.2.0/docs/examples/recipes.md +0 -44
  98. networka-0.2.0/docs/getting-started.md +0 -73
  99. networka-0.2.0/docs/ip-address-support.md +0 -108
  100. networka-0.2.0/docs/library/adhoc-targets.md +0 -120
  101. networka-0.2.0/docs/library/quickstart.md +0 -92
  102. networka-0.2.0/docs/output-modes.md +0 -28
  103. networka-0.2.0/docs/platform-compatibility.md +0 -12
  104. networka-0.2.0/docs/results.md +0 -32
  105. networka-0.2.0/docs/troubleshooting.md +0 -83
  106. networka-0.2.0/src/network_toolkit/api/info.py +0 -80
  107. networka-0.2.0/src/network_toolkit/commands/platforms.py +0 -195
  108. networka-0.2.0/src/network_toolkit/commands/sequence.py +0 -17
  109. networka-0.2.0/src/network_toolkit/common/color_magic.py +0 -177
  110. networka-0.2.0/src/network_toolkit/common/command.py +0 -158
  111. networka-0.2.0/src/network_toolkit/common/command_base.py +0 -132
  112. networka-0.2.0/src/network_toolkit/common/output_clean.py +0 -244
  113. networka-0.2.0/src/network_toolkit/sequence_manager.py +0 -315
  114. networka-0.2.0/src/network_toolkit/transport/factory.py +0 -99
  115. networka-0.2.0/src/network_toolkit/transport/nornir_inventory.py +0 -176
  116. networka-0.2.0/src/network_toolkit/transport/nornir_netmiko.py +0 -279
  117. networka-0.2.0/src/network_toolkit/tui/__init__.py +0 -18
  118. networka-0.2.0/src/network_toolkit/tui/app.py +0 -1275
  119. networka-0.2.0/src/network_toolkit/tui/clipboard.py +0 -46
  120. networka-0.2.0/src/network_toolkit/tui/compat.py +0 -111
  121. networka-0.2.0/src/network_toolkit/tui/constants.py +0 -111
  122. networka-0.2.0/src/network_toolkit/tui/controller.py +0 -550
  123. networka-0.2.0/src/network_toolkit/tui/data.py +0 -146
  124. networka-0.2.0/src/network_toolkit/tui/dialogs.py +0 -196
  125. networka-0.2.0/src/network_toolkit/tui/helpers.py +0 -55
  126. networka-0.2.0/src/network_toolkit/tui/keymap.py +0 -31
  127. networka-0.2.0/src/network_toolkit/tui/layout.py +0 -111
  128. networka-0.2.0/src/network_toolkit/tui/models.py +0 -93
  129. networka-0.2.0/src/network_toolkit/tui/output_manager.py +0 -372
  130. networka-0.2.0/src/network_toolkit/tui/prompt.py +0 -172
  131. networka-0.2.0/src/network_toolkit/tui/services.py +0 -285
  132. {networka-0.2.0 → networka-0.4.0}/LICENSE +0 -0
  133. {networka-0.2.0 → networka-0.4.0}/config/examples/README.md +0 -0
  134. {networka-0.2.0 → networka-0.4.0}/docs/LLM_TASK_NOTES.md +0 -0
  135. {networka-0.2.0 → networka-0.4.0}/docs/adding-gifs-guide.md +0 -0
  136. {networka-0.2.0 → networka-0.4.0}/docs/assets/gifs/networka-setup.gif +0 -0
  137. {networka-0.2.0 → networka-0.4.0}/docs/assets/images/networka.jpg +0 -0
  138. {networka-0.2.0 → networka-0.4.0}/docs/assets/images/networka.png +0 -0
  139. {networka-0.2.0 → networka-0.4.0}/docs/assets/images/networka2.png +0 -0
  140. {networka-0.2.0 → networka-0.4.0}/docs/assets/images/networka_readme.png +0 -0
  141. {networka-0.2.0 → networka-0.4.0}/docs/assets/javascripts/extra.js +0 -0
  142. {networka-0.2.0 → networka-0.4.0}/docs/assets/stylesheets/extra.css +0 -0
  143. {networka-0.2.0 → networka-0.4.0}/docs/backup-filename-normalization.md +0 -0
  144. {networka-0.2.0 → networka-0.4.0}/docs/cisco-ios-platform-mapping.md +0 -0
  145. {networka-0.2.0 → networka-0.4.0}/docs/development/networka-upgrade-report-2026-11-24.md +0 -0
  146. {networka-0.2.0 → networka-0.4.0}/docs/development/platform-registry-summary.md +0 -0
  147. {networka-0.2.0 → networka-0.4.0}/docs/documentation-guidelines.md +0 -0
  148. {networka-0.2.0 → networka-0.4.0}/docs/examples/user_sequences/arista_eos/custom.yml +0 -0
  149. {networka-0.2.0 → networka-0.4.0}/docs/examples/user_sequences/mikrotik_routeros/custom.yml +0 -0
  150. {networka-0.2.0 → networka-0.4.0}/docs/overrides/partials/footer.html +0 -0
  151. {networka-0.2.0 → networka-0.4.0}/docs/overrides/partials/logo.html +0 -0
  152. {networka-0.2.0 → networka-0.4.0}/docs/pypi-setup.md +0 -0
  153. {networka-0.2.0 → networka-0.4.0}/docs/reference/api.md +0 -0
  154. {networka-0.2.0 → networka-0.4.0}/shell_completion/bash_completion_nw.sh +0 -0
  155. {networka-0.2.0 → networka-0.4.0}/shell_completion/zsh_completion_nw.zsh +0 -0
  156. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/__main__.py +0 -0
  157. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/api/__init__.py +0 -0
  158. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/api/backup.py +0 -0
  159. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/api/download.py +0 -0
  160. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/api/firmware.py +0 -0
  161. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/api/platforms.py +0 -0
  162. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/api/routerboard_upgrade.py +0 -0
  163. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/api/state_diff.py +0 -0
  164. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/api/state_diff_patterns.py +0 -0
  165. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/builtin_sequences/arista_eos/common.yml +0 -0
  166. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/builtin_sequences/cisco_iosxe/common.yml +0 -0
  167. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/builtin_sequences/cisco_nxos/common.yml +0 -0
  168. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/builtin_sequences/juniper_junos/common.yml +0 -0
  169. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/builtin_sequences/mikrotik_routeros/common.yml +0 -0
  170. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/__init__.py +0 -0
  171. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/ssh_engines.py +0 -0
  172. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/ssh_fallback.py +0 -0
  173. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/commands/ssh_platform.py +0 -0
  174. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/common/config_manifest.py +0 -0
  175. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/common/credentials.py +0 -0
  176. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/common/errors.py +0 -0
  177. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/common/file_utils.py +0 -0
  178. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/common/filename_utils.py +0 -0
  179. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/common/interactive_confirmation.py +0 -0
  180. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/common/paths.py +0 -0
  181. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/common/resolver.py +0 -0
  182. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/device_transfers.py +0 -0
  183. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/introspection.py +0 -0
  184. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/inventory/__init__.py +0 -0
  185. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/inventory/catalog.py +0 -0
  186. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/inventory/resolve.py +0 -0
  187. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/platforms/__init__.py +0 -0
  188. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/platforms/base.py +0 -0
  189. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/platforms/cisco_ios/__init__.py +0 -0
  190. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/platforms/cisco_ios/operations.py +0 -0
  191. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/platforms/cisco_iosxe/__init__.py +0 -0
  192. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/platforms/cisco_iosxe/operations.py +0 -0
  193. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/platforms/cisco_shared/__init__.py +0 -0
  194. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/platforms/cisco_shared/operations.py +0 -0
  195. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/platforms/factory.py +0 -0
  196. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/platforms/mikrotik_routeros/__init__.py +0 -0
  197. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/platforms/mikrotik_routeros/confirmation_patterns.py +0 -0
  198. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/platforms/mikrotik_routeros/operations.py +0 -0
  199. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/platforms/registry.py +0 -0
  200. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/py.typed +0 -0
  201. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/results_enhanced.py +0 -0
  202. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/runtime.py +0 -0
  203. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/schemas/__init__.py +0 -0
  204. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/shell_completion/bash_completion_nw.sh +0 -0
  205. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/shell_completion/zsh_completion_nw.zsh +0 -0
  206. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/transport/__init__.py +0 -0
  207. {networka-0.2.0 → networka-0.4.0}/src/network_toolkit/transport/interfaces.py +0 -0
@@ -285,6 +285,12 @@ config/sequences/*
285
285
  # Keep examples directory
286
286
  !config/examples/
287
287
 
288
+ # Generated Containerlab inventory and local connection settings
289
+ /clabs/clab-s3n/ansible-inventory.yml
290
+ /clabs/clab-s3n/nornir-simple-inventory.yml
291
+ /clabs/clab-s3n/topology-data.json
292
+ /clabs/networka-s3n-config/config.yml
293
+
288
294
  # Pre-release check marker
289
295
  .pre-release-passed
290
296
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: networka
3
- Version: 0.2.0
3
+ Version: 0.4.0
4
4
  Summary: Modern Python cli toolkit for network device automation
5
5
  Project-URL: Homepage, https://github.com/narrowin/networka
6
6
  Project-URL: Documentation, https://narrowin.github.io/networka/
@@ -24,47 +24,26 @@ Classifier: Operating System :: MacOS
24
24
  Classifier: Operating System :: POSIX :: Linux
25
25
  Classifier: Programming Language :: Python :: 3
26
26
  Classifier: Programming Language :: Python :: 3 :: Only
27
- Classifier: Programming Language :: Python :: 3.11
28
- Classifier: Programming Language :: Python :: 3.12
29
- Classifier: Programming Language :: Python :: 3.13
30
- Classifier: Programming Language :: Python :: 3.14
31
27
  Classifier: Programming Language :: Python :: 3.15
32
28
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
33
29
  Classifier: Topic :: System :: Networking
34
30
  Classifier: Topic :: System :: Systems Administration
35
31
  Classifier: Topic :: Utilities
36
32
  Classifier: Typing :: Typed
37
- Requires-Python: >=3.11
38
- Requires-Dist: libtmux<0.68,>=0.67.1
33
+ Requires-Python: >=3.15
34
+ Requires-Dist: libtmux<0.69,>=0.68.0
39
35
  Requires-Dist: paramiko<6,>=5.1.0
36
+ Requires-Dist: platformdirs<5,>=3.6.0
40
37
  Requires-Dist: pydantic>=2.5.0
41
38
  Requires-Dist: python-dotenv>=1.0.0
42
39
  Requires-Dist: pyyaml>=6.0
43
40
  Requires-Dist: rich>=13.0.0
44
41
  Requires-Dist: scrapli==2026.11.12
45
- Requires-Dist: textual>=0.58.0
46
42
  Requires-Dist: typer>=0.12.0
47
- Provides-Extra: dev
48
- Requires-Dist: bandit>=1.7.0; extra == 'dev'
49
- Requires-Dist: build>=0.10.0; extra == 'dev'
50
- Requires-Dist: cffconvert>=2.0.0; extra == 'dev'
51
- Requires-Dist: detect-secrets>=1.4.0; extra == 'dev'
52
- Requires-Dist: mypy==2.4.1; extra == 'dev'
53
- Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
54
- Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
55
- Requires-Dist: pytest-mock>=3.14.0; extra == 'dev'
56
- Requires-Dist: pytest-xdist>=3.8.0; extra == 'dev'
57
- Requires-Dist: pytest>=7.4.0; extra == 'dev'
58
- Requires-Dist: ruff==0.17.6; extra == 'dev'
59
- Requires-Dist: twine>=4.0.0; extra == 'dev'
60
- Requires-Dist: types-paramiko>=3.0.0; extra == 'dev'
61
- Requires-Dist: types-pyyaml>=6.0.0; extra == 'dev'
62
43
  Provides-Extra: docs
63
44
  Requires-Dist: mkdocs-material>=9.0.0; extra == 'docs'
64
45
  Requires-Dist: mkdocs>=1.5.0; extra == 'docs'
65
46
  Requires-Dist: mkdocstrings[python]>=0.24.0; extra == 'docs'
66
- Provides-Extra: tmux
67
- Requires-Dist: libtmux>=0.21.0; extra == 'tmux'
68
47
  Description-Content-Type: text/markdown
69
48
 
70
49
  <div align="center"><img src="docs/assets/images/networka_readme.png" alt="Networka Logo" width="320"/>
@@ -74,43 +53,20 @@ Description-Content-Type: text/markdown
74
53
 
75
54
  <br/>
76
55
 
77
- Network automation CLI. Apache 2.0 licensed. Fully open-source.
78
- Originally developed at [narrowin](https://narrowin.ch/en/about.html), now community maintained.
56
+ Networka is a lightweight CLI for network engineers and integrators. Run ad hoc
57
+ commands or reusable sequences across network devices from multiple vendors,
58
+ then save the output and compare it with a baseline.
79
59
 
80
- <br/>
81
-
82
- **Networka: `Eierlegende Wollmilchsau` of network operations — optimized for your daily workflows.**
60
+ Use Networka for on-demand troubleshooting and before-and-after checks. Pair it
61
+ with continuous monitoring for alerting, telemetry, and ongoing health checks.
83
62
 
84
- [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)](https://www.python.org/downloads/)
63
+ [![Python 3.15+](https://img.shields.io/badge/python-3.15%2B-blue.svg)](https://www.python.org/downloads/)
85
64
  [![Platform](https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20arm64-lightgrey.svg)](https://github.com/narrowin/networka)
86
65
  [![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
87
66
  [![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
88
67
  [![Type checked with mypy](https://img.shields.io/badge/mypy-checked-blue.svg)](http://mypy-lang.org/)
89
68
  [![Docs](https://img.shields.io/github/actions/workflow/status/narrowin/networka/docs.yml?label=Docs&logo=github)](https://narrowin.github.io/networka/)
90
69
 
91
- Networka is a modern CLI tool for automating network devices across multiple vendors. Designed for network engineers who want fast, scalable automation with full cross-platform support.
92
-
93
- ---
94
-
95
- ## _The Networka Monologue_
96
-
97
- _“People ask the question…_ <br>
98
- **what’s a Networka?** <br>
99
-
100
- And I tell 'em — <br>
101
- it's **not** about cables, configs, and pings. <br>
102
- _Oh no._ <br>
103
- There’s more to it than that, my friend. <br>
104
-
105
- We all like a bit of the good life — <br>
106
- some the uptime, some the security, <br>
107
- others the automation, the visibility, or the compliance. <br>
108
-
109
- But a **Networka**, oh, they're different. <br>
110
- Why? <br>
111
- Because a real **Networka** wants the f\*ing lot.”<br><br>
112
- (inspired by: [RockNRolla](https://www.youtube.com/watch?v=s4YLBqMJYOo))
113
-
114
70
  ## Getting Started
115
71
 
116
72
  - Installation: see the docs → https://narrowin.github.io/networka/getting-started/
@@ -119,6 +75,10 @@ Because a real **Networka** wants the f\*ing lot.”<br><br>
119
75
  - CLI reference → https://narrowin.github.io/networka/reference/cli/
120
76
  - API reference → https://narrowin.github.io/networka/reference/api/
121
77
 
78
+ See how to [run a reusable sequence](docs/running-commands.md),
79
+ [save the output](docs/results.md), and
80
+ [compare it with a baseline](docs/reference/cli.md#nw-diff).
81
+
122
82
  <div align="center">
123
83
  <img src="https://narrowin.github.io/networka/assets/gifs/networka-setup.gif" alt="Networka Setup Demo" width="800"/>
124
84
  <p><em>Networka setup and command execution demo</em></p>
@@ -173,32 +133,36 @@ Networka is built for network engineers who want to run commands now. Ansible ex
173
133
  ### System Requirements
174
134
 
175
135
  - **Operating System**: Linux x86-64/arm64 or macOS arm64
136
+ - **Python**: 3.15 or later
176
137
  - **Network Access**: SSH connectivity to target devices
177
138
  - **Package Manager**: uv (recommended) or pip
178
139
  - **tmux for `nw cli`**: Install tmux to use the multi-pane CLI command (`brew install tmux` on macOS, `apt install tmux` on Debian/Ubuntu). libtmux is installed automatically with Networka.
179
140
 
180
141
  ### Install from the checkout
181
142
 
182
- With uv 0.13.9 in this checkout, use a project environment to keep the native driver isolated.
143
+ With uv 0.13.10 in this checkout, use a project environment to keep the native driver isolated.
183
144
 
184
145
  ```bash
185
146
  uv sync --locked
186
- uv run nw --version
187
- uv run nw --help
147
+ uv run --locked nw --version
148
+ uv run --locked nw --help
188
149
  ```
189
150
 
190
151
  Networka 0.2.0 uses Scrapli 2 via the `scrapli==2026.11.12` distribution. An in-place upgrade replaces legacy Scrapli through pip or uv. Early candidate installations that included `scrapli2==2.0.4` should use a fresh environment. Networka 0.2.0 targets Linux and Apple Silicon macOS. RouterOS restart confirmation and Cisco enable-password escalation passed in disposable labs. WSL2 remains unverified. [Transport selection](docs/transport.md) · [Platform compatibility](docs/platform-compatibility.md)
191
152
 
192
153
  ## Quick Start
193
154
 
194
- Get up and running with config init command:
155
+ Inspect a packaged sequence and run it on a RouterOS device. Replace the
156
+ example address and enter your device credentials when prompted.
195
157
 
196
158
  ```bash
197
- # Initialize in default location with interactive prompts
198
- nw config init
199
-
159
+ nw info system_info --vendor mikrotik_routeros
160
+ nw run 192.0.2.10 system_info --platform mikrotik_routeros --interactive-auth
200
161
  ```
201
162
 
163
+ For recurring work, use `nw config init` to create your
164
+ [configuration](docs/configuration.md) and target devices by name.
165
+
202
166
  ### Library API
203
167
 
204
168
  Use Networka programmatically in your Python applications:
@@ -236,11 +200,10 @@ nw run --platform cisco_iosxe 198.51.100.20 "show version" --interactive-auth
236
200
 
237
201
  ## Terminology: device_type vs hardware platform vs transport
238
202
 
239
- - device_type: Network OS driver used for connections and commands (Scrapli "platform"). Examples: mikrotik_routeros, cisco_iosxe, arista_eos, juniper_junos.
240
- - platform (hardware/firmware): Hardware architecture used for firmware-related operations (x86, x86_64, arm, mipsbe, tile).
241
- - transport: Connection backend. Default is scrapli.
242
-
243
- Note: When targeting IPs directly, `--platform` refers to the network driver (device_type), not hardware architecture.
203
+ - `device_type` is the logical platform used to select commands and the native connection definition.
204
+ - The inventory `platform` field describes hardware architecture for firmware.
205
+ - `--platform` names the logical platform for a raw IP target.
206
+ - `--transport` selects the Scrapli driver family. The underlying connection backend defaults to OpenSSH. [Transport settings](docs/transport.md)
244
207
 
245
208
  ## Quick links
246
209
 
@@ -5,43 +5,20 @@
5
5
 
6
6
  <br/>
7
7
 
8
- Network automation CLI. Apache 2.0 licensed. Fully open-source.
9
- Originally developed at [narrowin](https://narrowin.ch/en/about.html), now community maintained.
8
+ Networka is a lightweight CLI for network engineers and integrators. Run ad hoc
9
+ commands or reusable sequences across network devices from multiple vendors,
10
+ then save the output and compare it with a baseline.
10
11
 
11
- <br/>
12
-
13
- **Networka: `Eierlegende Wollmilchsau` of network operations — optimized for your daily workflows.**
12
+ Use Networka for on-demand troubleshooting and before-and-after checks. Pair it
13
+ with continuous monitoring for alerting, telemetry, and ongoing health checks.
14
14
 
15
- [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)](https://www.python.org/downloads/)
15
+ [![Python 3.15+](https://img.shields.io/badge/python-3.15%2B-blue.svg)](https://www.python.org/downloads/)
16
16
  [![Platform](https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20arm64-lightgrey.svg)](https://github.com/narrowin/networka)
17
17
  [![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
18
18
  [![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
19
19
  [![Type checked with mypy](https://img.shields.io/badge/mypy-checked-blue.svg)](http://mypy-lang.org/)
20
20
  [![Docs](https://img.shields.io/github/actions/workflow/status/narrowin/networka/docs.yml?label=Docs&logo=github)](https://narrowin.github.io/networka/)
21
21
 
22
- Networka is a modern CLI tool for automating network devices across multiple vendors. Designed for network engineers who want fast, scalable automation with full cross-platform support.
23
-
24
- ---
25
-
26
- ## _The Networka Monologue_
27
-
28
- _“People ask the question…_ <br>
29
- **what’s a Networka?** <br>
30
-
31
- And I tell 'em — <br>
32
- it's **not** about cables, configs, and pings. <br>
33
- _Oh no._ <br>
34
- There’s more to it than that, my friend. <br>
35
-
36
- We all like a bit of the good life — <br>
37
- some the uptime, some the security, <br>
38
- others the automation, the visibility, or the compliance. <br>
39
-
40
- But a **Networka**, oh, they're different. <br>
41
- Why? <br>
42
- Because a real **Networka** wants the f\*ing lot.”<br><br>
43
- (inspired by: [RockNRolla](https://www.youtube.com/watch?v=s4YLBqMJYOo))
44
-
45
22
  ## Getting Started
46
23
 
47
24
  - Installation: see the docs → https://narrowin.github.io/networka/getting-started/
@@ -50,6 +27,10 @@ Because a real **Networka** wants the f\*ing lot.”<br><br>
50
27
  - CLI reference → https://narrowin.github.io/networka/reference/cli/
51
28
  - API reference → https://narrowin.github.io/networka/reference/api/
52
29
 
30
+ See how to [run a reusable sequence](docs/running-commands.md),
31
+ [save the output](docs/results.md), and
32
+ [compare it with a baseline](docs/reference/cli.md#nw-diff).
33
+
53
34
  <div align="center">
54
35
  <img src="https://narrowin.github.io/networka/assets/gifs/networka-setup.gif" alt="Networka Setup Demo" width="800"/>
55
36
  <p><em>Networka setup and command execution demo</em></p>
@@ -104,32 +85,36 @@ Networka is built for network engineers who want to run commands now. Ansible ex
104
85
  ### System Requirements
105
86
 
106
87
  - **Operating System**: Linux x86-64/arm64 or macOS arm64
88
+ - **Python**: 3.15 or later
107
89
  - **Network Access**: SSH connectivity to target devices
108
90
  - **Package Manager**: uv (recommended) or pip
109
91
  - **tmux for `nw cli`**: Install tmux to use the multi-pane CLI command (`brew install tmux` on macOS, `apt install tmux` on Debian/Ubuntu). libtmux is installed automatically with Networka.
110
92
 
111
93
  ### Install from the checkout
112
94
 
113
- With uv 0.13.9 in this checkout, use a project environment to keep the native driver isolated.
95
+ With uv 0.13.10 in this checkout, use a project environment to keep the native driver isolated.
114
96
 
115
97
  ```bash
116
98
  uv sync --locked
117
- uv run nw --version
118
- uv run nw --help
99
+ uv run --locked nw --version
100
+ uv run --locked nw --help
119
101
  ```
120
102
 
121
103
  Networka 0.2.0 uses Scrapli 2 via the `scrapli==2026.11.12` distribution. An in-place upgrade replaces legacy Scrapli through pip or uv. Early candidate installations that included `scrapli2==2.0.4` should use a fresh environment. Networka 0.2.0 targets Linux and Apple Silicon macOS. RouterOS restart confirmation and Cisco enable-password escalation passed in disposable labs. WSL2 remains unverified. [Transport selection](docs/transport.md) · [Platform compatibility](docs/platform-compatibility.md)
122
104
 
123
105
  ## Quick Start
124
106
 
125
- Get up and running with config init command:
107
+ Inspect a packaged sequence and run it on a RouterOS device. Replace the
108
+ example address and enter your device credentials when prompted.
126
109
 
127
110
  ```bash
128
- # Initialize in default location with interactive prompts
129
- nw config init
130
-
111
+ nw info system_info --vendor mikrotik_routeros
112
+ nw run 192.0.2.10 system_info --platform mikrotik_routeros --interactive-auth
131
113
  ```
132
114
 
115
+ For recurring work, use `nw config init` to create your
116
+ [configuration](docs/configuration.md) and target devices by name.
117
+
133
118
  ### Library API
134
119
 
135
120
  Use Networka programmatically in your Python applications:
@@ -167,11 +152,10 @@ nw run --platform cisco_iosxe 198.51.100.20 "show version" --interactive-auth
167
152
 
168
153
  ## Terminology: device_type vs hardware platform vs transport
169
154
 
170
- - device_type: Network OS driver used for connections and commands (Scrapli "platform"). Examples: mikrotik_routeros, cisco_iosxe, arista_eos, juniper_junos.
171
- - platform (hardware/firmware): Hardware architecture used for firmware-related operations (x86, x86_64, arm, mipsbe, tile).
172
- - transport: Connection backend. Default is scrapli.
173
-
174
- Note: When targeting IPs directly, `--platform` refers to the network driver (device_type), not hardware architecture.
155
+ - `device_type` is the logical platform used to select commands and the native connection definition.
156
+ - The inventory `platform` field describes hardware architecture for firmware.
157
+ - `--platform` names the logical platform for a raw IP target.
158
+ - `--transport` selects the Scrapli driver family. The underlying connection backend defaults to OpenSSH. [Transport settings](docs/transport.md)
175
159
 
176
160
  ## Quick links
177
161
 
@@ -0,0 +1,110 @@
1
+ # Adding platform support
2
+
3
+ ## Overview
4
+
5
+ Networka uses a logical `device_type` to select both connection behavior and
6
+ sequences. Check three layers when adding support.
7
+
8
+ | Layer | Source |
9
+ | --- | --- |
10
+ | Connection definition | Packaged Scrapli YAML or the active `SCRAPLI_DEFINITIONS_PATH` directory |
11
+ | Sequences | Networka's packaged files and the operator's sequence configuration |
12
+ | Vendor operations | Networka's platform registry and operation handlers |
13
+
14
+ Device qualification records the platform, OS version, and operations that
15
+ were exercised.
16
+
17
+ ## Quick start
18
+
19
+ Inspect the platform before adding code.
20
+
21
+ ```bash
22
+ nw platforms list
23
+ nw platforms info mikrotik_routeros
24
+ ```
25
+
26
+ An installed definition lets Networka select that name for a command
27
+ session. Choose the logical type in inventory or pass it with `--platform`
28
+ for a raw IP. A connection alias can select the same Scrapli definition as
29
+ another platform while retaining its own sequence and operation names.
30
+ See [transport selection](transport.md).
31
+
32
+ ## Step-by-step implementation guide
33
+
34
+ ### Add a sequence
35
+
36
+ Start with one read-only task in an operator configuration. For a project,
37
+ put the sequence under `sequences/<device_type>/common.yml` next to
38
+ `config.yml`.
39
+
40
+ ```yaml
41
+ sequences:
42
+ system_info:
43
+ description: System information
44
+ commands:
45
+ - show version
46
+ ```
47
+
48
+ Inspect the selected source and commands.
49
+
50
+ ```bash
51
+ nw info system_info --vendor cisco_iosxe --config ./config
52
+ ```
53
+
54
+ Use `src/network_toolkit/builtin_sequences/<device_type>/common.yml` for a
55
+ maintained sequence shipped with Networka. Follow the
56
+ [sequence resolution order](multi-vendor-support.md#sequence-resolution-order)
57
+ for project or user overrides.
58
+
59
+ ### Register vendor operations
60
+
61
+ Add a registry entry when reporting maintained sequences or implementing
62
+ vendor-specific operations. Work from the existing `PlatformInfo` entries
63
+ in `src/network_toolkit/platforms/registry.py`. For an operation, implement
64
+ the relevant `PlatformOperations` methods using one of the existing
65
+ platform implementations as the reference. Wire the handler into
66
+ `get_platform_operations` in `src/network_toolkit/platforms/factory.py`.
67
+ The registry records capability metadata. The factory creates the handler.
68
+
69
+ Set the individual capability flags to match implemented behavior. Preserve
70
+ `platform` as the hardware architecture field when a firmware operation uses
71
+ it. Use `nw platforms info` to verify the registry flags and definition
72
+ selection independently.
73
+
74
+ Regenerate the registry reference after changing it.
75
+
76
+ ```bash
77
+ uv run --locked python scripts/generate_platform_docs.py
78
+ ```
79
+
80
+ ## Platform status progression
81
+
82
+ Use the status in the registry to describe Networka's implementation scope.
83
+ `sequences_only` indicates maintained sequences with no vendor operation
84
+ handlers. `implemented` indicates registered operations. The capability flags
85
+ identify which operations. A definition can be available for a platform whose
86
+ registry status is planned.
87
+
88
+ ## Troubleshooting
89
+
90
+ - If a definition is missing, inspect the active catalog. An override directory
91
+ supplies all the named definitions for that invocation.
92
+ - If a sequence name selects different commands than expected, inspect the
93
+ logical platform or the configured device with `nw info`.
94
+ - If a vendor operation is unavailable, check the corresponding capability in
95
+ `nw platforms info`.
96
+
97
+ ## Checklist
98
+
99
+ - Confirm that installed definition lookup and alias selection work offline.
100
+ - Inspect the packaged sequence and its winning source.
101
+ - Record the approved device target, software version, commands, and results
102
+ when qualifying device behavior.
103
+ - Run the [development checks](development.md) and update the applicable
104
+ [vendor guide](vendors/index.md).
105
+
106
+ ## Resources
107
+
108
+ - [Platform compatibility](platform-compatibility.md)
109
+ - [Multi-vendor support](multi-vendor-support.md)
110
+ - [Scrapli platform definitions](https://carlmontanari.github.io/scrapli/details/#platform-definitions)
@@ -0,0 +1,22 @@
1
+ # Backups
2
+
3
+ Run a configuration backup for a named device or group.
4
+
5
+ ```bash
6
+ nw backup config router1
7
+ nw backup config office_switches
8
+ ```
9
+
10
+ Backup downloads are enabled by default. Use `--no-download` to leave files
11
+ on the device, or `--delete-remote` to remove generated files after successful
12
+ download.
13
+
14
+ See which registered platforms implement configuration backup.
15
+
16
+ ```bash
17
+ nw platforms list --capability config_backup
18
+ ```
19
+
20
+ The device platform determines the backup behavior. See the
21
+ [RouterOS guide](vendors/mikrotik/index.md#backups) or
22
+ [Cisco guide](vendors/cisco/index.md#backups) for details.
@@ -2,15 +2,19 @@
2
2
 
3
3
  This guide explains how to define devices, groups, and sequences for Networka. YAML is the preferred and most expressive format. CSV is supported mainly for users who manage inventories in spreadsheets on Windows. You can mix formats; use YAML by default and add CSV where it makes workflow sense.
4
4
 
5
- Note on credentials: See Environment variables (TL;DR at the top) for how credentials are resolved and how to set defaults and overrides.
5
+ See [environment variables](environment-variables.md) for credential defaults and overrides.
6
6
 
7
7
  ## Directory layout
8
8
 
9
- Networka expects a modular configuration rooted at the platform-specific application directory created by `nw config init` (Linux: `~/.config/networka`, macOS: `~/Library/Application Support/networka`, Windows: `%APPDATA%\networka`). Within that root, place configuration under the `config/` directory:
9
+ Use the platform-specific directory created by `nw config init`.
10
+ On Linux it is typically `~/.config/networka` and on macOS it is
11
+ `~/Library/Application Support/networka`. Place the modular files directly
12
+ in that directory, or pass your own directory with the command's
13
+ `--config` option.
10
14
 
11
15
  ```text
12
- config/
13
- ├── config.yml # Optional global defaults
16
+ networka/
17
+ ├── config.yml # Main configuration file
14
18
  ├── devices/ # Device definitions (YAML or CSV)
15
19
  │ ├── router1.yml
16
20
  │ └── inventory.csv
@@ -28,11 +32,12 @@ Networka loads all files in these folders. Later files override earlier ones whe
28
32
 
29
33
  - Device name: unique identifier used on the CLI (e.g., `nw run router1 ...`).
30
34
  - Host: IP or DNS name to connect to.
31
- - Device type: vendor/platform key (e.g., `mikrotik_routeros`, `cisco_iosxe`).
35
+ - `device_type` is the logical network OS used for definition and sequence selection, for example `mikrotik_routeros`.
36
+ - `platform` in inventory is an optional hardware architecture such as `arm` for firmware selection.
32
37
  - Groups: explicit member lists and/or tag-based membership.
33
38
  - Sequences: named sets of commands to run consistently.
34
39
 
35
- Credentials come from environment variables; see Environment variables for details.
40
+ For the active definition catalog, run `nw platforms list`.
36
41
 
37
42
  ## Using Nornir / Containerlab inventory (optional) {#nornir-inventory}
38
43
 
@@ -44,7 +49,6 @@ Configure this in `config/config.yml`:
44
49
  inventory:
45
50
  source: nornir_simple
46
51
  nornir_inventory_dir: /path/to/clab-<lab-dir> # or a direct file path
47
- merge_mode: replace
48
52
  ```
49
53
 
50
54
  See [Nornir & Containerlab inventory](nornir-inventory.md) for the full workflow and options.
@@ -67,37 +71,42 @@ YAML gives you clarity, comments, nesting, and future-proofing. Prefer it for ev
67
71
 
68
72
  ```yaml
69
73
  # config/devices/router1.yml
70
- host: 192.0.2.10
71
- device_type: mikrotik_routeros
72
- tags: [edge, router]
74
+ devices:
75
+ router1:
76
+ host: 192.0.2.10
77
+ device_type: mikrotik_routeros
78
+ tags: [edge, router]
73
79
  ```
74
80
 
75
81
  ### Group examples
76
82
 
77
83
  ```yaml
78
- # config/groups/core.yml
79
- name: core
80
- description: Core network devices
81
- members: [sw-01, sw-02]
82
-
83
- ---
84
- # config/groups/edge.yml
85
- name: edge
86
- description: Edge devices
87
- match_tags: [edge]
84
+ # groups/groups.yml
85
+ groups:
86
+ core:
87
+ description: Core network devices
88
+ members: [router1]
89
+ edge:
90
+ description: Edge devices
91
+ match_tags: [edge]
88
92
  ```
89
93
 
90
94
  ### Sequence example
91
95
 
92
96
  ```yaml
93
97
  # config/sequences/common.yml
94
- health_check:
95
- description: Basic health check
96
- commands:
97
- - /system/resource/print
98
- - /interface/print stats
98
+ sequences:
99
+ router_summary:
100
+ description: Basic RouterOS summary
101
+ device_types: [mikrotik_routeros]
102
+ commands:
103
+ - /system/resource/print
104
+ - /interface/print stats
99
105
  ```
100
106
 
107
+ Global definitions are a fallback after platform and device-local sequences.
108
+ See the [resolution order](multi-vendor-support.md#sequence-resolution-order).
109
+
101
110
  ## CSV {#csv}
102
111
 
103
112
  Use CSV if your source of truth is a spreadsheet. It’s convenient for bulk imports. Keep it simple and map columns to the same concepts as YAML.
@@ -126,19 +135,9 @@ core_switches,Core network switches,sw-01;sw-02,switch;core
126
135
  edge_devices,Edge routers and firewalls,,edge;firewall
127
136
  ```
128
137
 
129
- ### Sequences CSV
130
-
131
- Required: `name`, `description`, `commands` (semicolon-separated)
132
-
133
- Optional: `tags` (semicolon-separated)
134
-
135
- ```csv
136
- name,description,commands,tags
137
- health_check,Basic health check,/system/resource/print;/interface/print stats,monitoring;health
138
- ```
139
-
140
138
  ## YAML vs CSV: differences at a glance
141
139
 
140
+ - Scope: Use YAML for sequences. Device and group inventories also support CSV.
142
141
  - Expressiveness: YAML supports comments, nesting, and complex structures; CSV is flat.
143
142
  - Multi-valued fields: In YAML, use lists; in CSV, use semicolon-separated values.
144
143
  - Merging/overrides: Both support file-level overrides by name; YAML is clearer for intent.
@@ -148,7 +147,7 @@ Recommendation: Use YAML for long-term, reviewable configuration. Use CSV for qu
148
147
 
149
148
  ## Mixing formats
150
149
 
151
- Mixing is supported. If both YAML and CSV define the same device/group/sequence name, the later-loaded file wins according to filesystem order. Keep ownership clear to avoid surprises.
150
+ Device and group inventories can mix YAML and CSV. Keep each name in one file to make its source clear.
152
151
 
153
152
  ## Next steps
154
153
 
@@ -158,34 +157,29 @@ Mixing is supported. If both YAML and CSV define the same device/group/sequence
158
157
 
159
158
  ## Global settings (config.yml)
160
159
 
161
- The optional `config/config.yml` file can specify global defaults that apply to all devices. This is particularly useful for SSH security settings and connection timeouts.
160
+ Use `config.yml` for settings that apply to all devices.
162
161
 
163
- ### SSH security settings
162
+ ```yaml
163
+ general:
164
+ ssh_strict_host_key_checking: true
165
+ timeout: 30
166
+ command_timeout: 60
167
+ ```
164
168
 
165
- #### ssh_strict_host_key_checking
169
+ Host-key checking defaults to disabled. See
170
+ [transport selection](transport.md) for how command sessions, tmux panes,
171
+ and SFTP apply the setting.
166
172
 
167
- - **Type**: boolean
168
- - **Default**: `false` (accept-new behavior)
169
- - **Description**: Control SSH host key verification behavior
170
- - **Impact**:
171
- - When `false` (default): Uses `accept-new` - automatically accepts new host keys, but verifies existing ones. Protects against MITM on known hosts while allowing new devices.
172
- - When `true`: Strict mode - fails on any unknown or changed host key (most secure, but requires manual key management)
173
- - With `--no-strict-host-key-checking` flag: Completely disables all verification (INSECURE - lab use only)
173
+ #### ssh_known_hosts_file
174
174
 
175
- Example `config/config.yml`:
175
+ - **Type**: string (path, `~` is expanded)
176
+ - **Default**: unset, so the SSH client uses its own default file
177
+ - **Description**: Known-hosts file for CLI SSH sessions. The `system` transport always uses it. The `ssh2` transport uses it in strict mode. SFTP transfers still check `~/.ssh/known_hosts`.
176
178
 
177
179
  ```yaml
178
180
  general:
179
- ssh_strict_host_key_checking: false # Default: accept-new (accept new, verify existing)
180
- # Set to true for maximum security (requires manual key management)
181
- ```
182
-
183
- For the `run` and `cli` commands, you can completely disable all host key verification per-command:
184
-
185
- ```bash
186
- # Completely disable host key verification (INSECURE - lab use only)
187
- nw run router1 '/system/identity/print' --no-strict-host-key-checking
188
- nw cli router1 --no-strict-host-key-checking
181
+ ssh_strict_host_key_checking: true
182
+ ssh_known_hosts_file: ~/lab/known_hosts
189
183
  ```
190
184
 
191
185
  ## Bootstrap configuration (CLI)