Page MenuHomeVyOS Platform

Make Python / XML code development more testable
Closed, ResolvedPublic

Description

Make Python / XML code development more testable. For now, Python scripts may be implemented and tested "in vivo" only. You need a running VyOS 1.2 and develop your code right there, on the router with no IDE support. This may be solvable by making a lightweight framework of scripts ("in vitro"), files, directory structure to be copied to an Eclipse Pydev project which enables the dev to:

  • make code under development read a custom config.boot (running config mockup)
  • make a in-Python representation of it
  • debug code handling / manipulating this representation
  • investigate the script output (for ex: the generated service config file, firewall ruleset, etc)
  • investigate the chain of commands generated by the Python script to implement these config changes to VyOS.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Internal change (not visible to end users)

Event Timeline

syncer triaged this task as Normal priority.Jan 14 2018, 6:37 PM
syncer changed the visibility from "Subscribers" to "Public (No Login Required)".
syncer renamed this task from Make Python / XML code development more testable to .Oct 18 2018, 6:05 AM
dmbaturin set Is it a breaking change? to Perfectly compatible.
dmbaturin set Issue type to Internal change (not visible to end users).Sep 3 2021, 7:32 AM