Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ydk doesn't seem to understand the "<" or ">" operations in the yang. #683

Closed
manjuv1 opened this issue Feb 7, 2018 · 2 comments
Closed
Assignees
Labels

Comments

@manjuv1
Copy link

manjuv1 commented Feb 7, 2018

Our yang model has a condition like below (sample)

   container timers {
      leaf config-1 {
        type uint16;
        default "60";
        units "seconds";
      }
      leaf config-2 {
        type uint16;
        default "180";
        units "seconds";
      }
      must "number(config-1) < number(config-2)" {
        error-message "config-1 should be lesser than config-2.";
        description
          "config-1 should be lesser than config-2";
      }
    }

But the ydk (version 0.6.2) doesn't seem to understand the "<" or ">" operations in the yang.

We get the below error on doing any crud operation on this model.

ydk.errors.YPYModelError:  Unexpected character(s) '&' (&lt; number(con). Path:

On analysing, we saw that YDK copies the yang model to ~/.ydk/MachineIP:SessionID after replacing all “<” to “&lt” and “>” to “&gt” and uses it for its CRUD operations.

Is there any way to get past this error?

@ygorelik
Copy link
Collaborator

The issue related to presence of XML special character sequences like '<', '>', '&', and '"' has been resolved as part of #614.

ygorelik pushed a commit to ygorelik/ydk-gen that referenced this issue Feb 27, 2018
@ghost ghost closed this as completed in #696 Feb 27, 2018
ghost pushed a commit that referenced this issue Feb 27, 2018
@asteinhagen
Copy link

Hello Yan, Abhi,

hereby I verify that with the latest YDK bug #683 has been successfully fixed.

Thank you

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants