Skip to content

generate.py always creates model bundles with requirements for current YDK version #844

@ygorelik

Description

@ygorelik

Expected Behavior

The generate.py script should follow YDK core release dependency, which is specified in the bundle profile.

Current Behavior

The generate.py script ignores YDK core release dependency, which is specified in the bundle profile, and create dependency to current release of YDK.

Steps to Reproduce

In YDK-0.8.0 generate bundle from profile profiles/bundles/cisco-nx-os-9_2_2.json, which specifies in dependency section: "core_version": "0.7.3"

Examine generated file ydk-gen/gen-api/python/cisco_nx_os-bundlesetup.py.
Note:
INSTALL_REQUIREMENTS = ['ydk>=0.8.0']

Expected:
INSTALL_REQUIREMENTS = ['ydk>=0.7.3']

System Information

YDK-0.8.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions