cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
730
Views
10
Helpful
2
Replies

Generated files are empty

AidanE
Level 1
Level 1

I'm trying to generate a small example and for some reason nothing seems to be generated.
This is my yang file:

module ex-example {
    yang-version 1.1;

    namespace "ex:ex-example";

    prefix qc;

    description
        "This YANG module has been created as an example";

    revision "2021-11-03" {
        description "Initial Revision";
        reference "I don't know what this string does";
    }

    leaf thisisastring {
        type string;
        mandatory "true";
        description "A string";
    }

    leaf thisisabool {
        type boolean;
        mandatory "true";
        description "A booelan";
    }
}

This is my profile:

{
  "name": "example-profile",
  "version": "1.0.0",
  "core_version": "0.8.6",
  "description": "An example bundle profile",
  "models": {
    "dir": [
      "yangprofiles"
    ]
  }
}

and this is the result:

#ifndef _EX_EXAMPLE_
#define _EX_EXAMPLE_

#include <memory>
#include <vector>
#include <string>
#include <ydk/types.hpp>
#include <ydk/errors.hpp>

namespace example_profile {
namespace ex_example {


}
}

#endif /* _EX_EXAMPLE_ */

I'm generating with `./generate.py --cpp --core --bundle profile.json`. What am I doing wrong?

1 Accepted Solution

Accepted Solutions

yangorelik
Spotlight
Spotlight

The YDK does not support global leaf or leaf-list, so you need to put your leaf(s) into a container.

Yan Gorelik
YDK Solutions

View solution in original post

2 Replies 2

yangorelik
Spotlight
Spotlight

The YDK does not support global leaf or leaf-list, so you need to put your leaf(s) into a container.

Yan Gorelik
YDK Solutions

That was it! Thank you so much.