For ydk >0.6.0, when using CRUDService and other services, using a child container or list, which is not the top-level node in a yang model is no longer supported. This functionality should be brought back.
For example:
from ydk.models.cisco_ios_xe import Cisco_IOS_XE_bgp_oper as bgp_oper
from ydk.services import CRUDService
from ydk.providers import NetconfServiceProvider
... # connect to provider etc
neighbors = bgp_oper.BgpStateData.Neighbors()
crud.read(provider, neighbors)
now has to be changed to:
from ydk.models.cisco_ios_xe import Cisco_IOS_XE_bgp_oper as bgp_oper
from ydk.services import CRUDService
from ydk.providers import NetconfServiceProvider
... # connect to provider etc
bgp_state = bgp_oper.BgpStateData()
crud.read(provider, bgp_state)
This backward incompatibility was noted in the release notes (https://github.com/CiscoDevNet/ydk-py/releases/tag/0.6.0).
For ydk >0.6.0, when using CRUDService and other services, using a child container or list, which is not the top-level node in a yang model is no longer supported. This functionality should be brought back.
For example:
now has to be changed to:
This backward incompatibility was noted in the release notes (https://github.com/CiscoDevNet/ydk-py/releases/tag/0.6.0).