You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm figuring out how to use extensions to enable statements as in the model defined in RFC 8040 Section 8 (https://tools.ietf.org/html/rfc8040#section-8). A simplification of the model is provided below where definitions of errors and descriptions have been removed for simplicity:
In my understanding, the generated bindings should define the restconf container with an empty data and an empty operations containers. However, the resulting file is "empty". See resulting binding below:
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.yangtypes import YANGDynClass
from pyangbind.lib.yangtypes import ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitarray
import six
# PY3 support of some PY2 keywords (needs improved)
if six.PY3:
import builtins as __builtin__
long = int
unicode = str
elif six.PY2:
import __builtin__
class ietf_restconf(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module ietf-restconf - based on the path /ietf-restconf. Each member element of
the container is represented as a class variable - with a specific
YANG type.
"""
_pyangbind_elements = {}
Am I doing something wrong?
TIA,
Lluís
The text was updated successfully, but these errors were encountered:
Dear Rob,
I'm figuring out how to use extensions to enable statements as in the model defined in RFC 8040 Section 8 (https://tools.ietf.org/html/rfc8040#section-8). A simplification of the model is provided below where definitions of errors and descriptions have been removed for simplicity:
The command used to generate the bindings is provided below (note the
--interesting-extension="ietf-restconf"
flag):In my understanding, the generated bindings should define the restconf container with an empty
data
and an emptyoperations
containers. However, the resulting file is "empty". See resulting binding below:Am I doing something wrong?
TIA,
Lluís
The text was updated successfully, but these errors were encountered: