PANTHEONtech/YANGinator

Add check for import and include statements [possible validation enhancement]

Closed this issue · 0 comments

Right now the user can import models and include submodels even if the models don't exist inside project. There should be checks if the models are missing and if they don't have defined types (and other statements inside them).

Add checks for the import and include statements inside annotator check package.

  1. Check if the imported/included yang file is on the same path (you can use YangUtil class)

Add checks for the prefix statement inside annotator check package.

  1. Check if the prefix used is actually imported/included.
  2. Check if the type (and other statements) are defined in the imported file (YangUtil class has some methods that can help)