9ef9a7a92d
This patch adds a jsonschema for os-net-config's configuration data and a library function to validate configuration data based on this schema. Adding schema-based validation allows catching a larger class of errors (typos, missing required parameters, etc.) for all devices configurable through os-net-config. The validation is run in the os-net-config CLI after loading the config file. If the config file fails to validate, the current default is to just log a warning and try to continue. By providing the new CLI option '--exit-on-validation-errors', this can be changed to log an error and exist instead. This validation is meant to be reusable, for example for pre-deployment validation of network environments (see change Ic16ee0bc353c46f8fe512454176a07ee95347346). Packaging with os-net-config makes it easier to keep object model and schema in sync. Change-Id: Ie4a905863b2d46c88d9cd6c3afc50e7d0a877090 Signed-off-by: Frank A. Zdarsky <fzdarsky@redhat.com>
14 lines
487 B
Plaintext
14 lines
487 B
Plaintext
# The order of packages is significant, because pip processes them in the order
|
|
# of appearance. Changing the order has an impact on the overall integration
|
|
# process, which may cause wedges in the gate later.
|
|
pbr>=2.0.0 # Apache-2.0
|
|
anyjson>=0.3.3 # BSD
|
|
six>=1.9.0 # MIT
|
|
eventlet!=0.18.3,>=0.18.2 # MIT
|
|
iso8601>=0.1.11 # MIT
|
|
netaddr!=0.7.16,>=0.7.13 # BSD
|
|
oslo.concurrency>=3.8.0 # Apache-2.0
|
|
oslo.utils>=3.20.0 # Apache-2.0
|
|
PyYAML>=3.10.0 # MIT
|
|
jsonschema>=2.0.0,<3.0.0,!=2.5.0 # MIT
|