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

leafref which is must be integer but error as string #218

Open
nkaliape opened this issue Jul 18, 2018 · 1 comment
Open

leafref which is must be integer but error as string #218

nkaliape opened this issue Jul 18, 2018 · 1 comment

Comments

@nkaliape
Copy link

In the below snippet the leaf subinterface is leafref pointing to the index which(also leafref) points to the config/index to "uint32" data type.

But the pybind class generated for this - calls this as "leafref" (string) which adds quotes and becomes string.

This breaks the YANG compliance where this data MUST be "uint32".

Note: jtox plugin works fine.
Same issue is with xsl as well.

leaf subinterface
type leafref
path /oc-if:interfaces/oc-if:interface[oc-if:name=current()/../interface]/oc-if:subinterfaces/oc-if:subinterface/oc-if:index
description Reference to a subinterface -- this requires the base
interface to be specified using the interface leaf in
this container. If only a reference to a base interface
is requuired, this leaf should not be set.

@JoseIgnacioTamayo
Copy link
Collaborator

Hi,

Could you please try again with a recent / latest release of pyangbind?

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

No branches or pull requests

2 participants