def data_model():
    return DataModel.from_file("yang-modules/test/yang-library.json",
                               ["yang-modules/test", "yang-modules/ietf"])
Exemple #2
0
def data_model():
    yang_dir = os.path.abspath(
        os.path.join(os.path.dirname(__file__), os.pardir, 'yangmodule',
                     'must-statement'))
    yang_lib = yang_dir + '/yang-library.json'
    return DataModel.from_file(yang_lib, [yang_dir])