cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
184
Views
0
Helpful
3
Replies
Highlighted

Some questions regarding Create bundle json file for Sandbox CSR1000v IOS 16.11.01a

Hello Sir,
Since Sandbox CSR1000v IOS version is 16.11.01a which is not in the /profile/bundle.
So I copied Cisco-IOS-xe_16_9_3.json to Cisco-IOS-xe_16_11_1.json then did some adjustments. 
Something I am still not very sure. Can you give me some advice ?
Much appreciate!!!


1 Change file name   (Correct ???)
Cisco-IOS-xe_16_9_3.json  ----------Cisco-IOS-xe_16_11_1.json

2 Change version and core_version  
{
"name": "cisco-ios-xe",
"version": "16.9.3",   ----------->"version": "16.11.1",    (Correct???)
"core_version": "0.6.5",  --------->"core_version": "0.8.5",  (Correct???)
"author": "Cisco",
"copyright": "Cisco",
"description": "YDK bundle for Cisco IOS XE models",
"long_description": "This YANG Development Kit (YDK) bundle provides APIs for Cisco IOS XE YANG models. YDK facilitates the use of YANG data models by expressing the model semantics in an API and abstracting protocol/encoding details. YDK is composed of a core package that defines services and providers, plus one or more module bundles. This YDK bundle for Cisco IOS XE models uses the YDK core package and additional model bundles. You can find the SDK documentation at http://ydk.cisco.com/py/docs You can find more details on YDK at http://ydk.io",
"models": {
"description": "Each element on the list has details on git repositories to source models from, including commit ids and relative paths inside the repositories. If no commit id is specified, HEAD is taken. This is unwise. The nested dir and file references are interpreted the same way as specific dir and file references above.",
"git": [
{
"url": "https://github.com/YangModels/yang.git",
"commits": [
{
"commitid": "117cadb27cc34576804afe3bfdff9ce17bfebc0d",
"file": [
replace all 1693 with 16111 and follow below link to update yang files accordingly one by one. (Correct???? or any good idea)
"https://github.com/YangModels/yang/tree/master/vendor/cisco/xe/16111"

 

"vendor/cisco/xe/1693/cisco-bridge-common.yang",
"vendor/cisco/xe/1693/cisco-bridge-domain.yang",
"vendor/cisco/xe/1693/cisco-ethernet.yang",
"vendor/cisco/xe/1693/cisco-ia.yang",
"vendor/cisco/xe/1693/Cisco-IOS-XE-aaa-oper.yang",
"vendor/cisco/xe/1693/Cisco-IOS-XE-aaa.yang",
"vendor/cisco/xe/1693/Cisco-IOS-XE-acl-oper.yang",

 

"file" - optional list of relative *.yang file paths within the git repository.

I am still not very sure how to fill "file" and "dependency"  Can you give me some advice ?

Thanks a lot!!

 

"file":[
]
},
"dependency": [
{
"name": "ietf",
"version": "0.1.5-post2",
"core_version": "0.7.3",
"uri": "file://profiles/bundles/ietf_0_1_5_post2.json"
}
]
}

Jacky Zhang
Global Telecom
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Participant

It all looks correct. The "commitid" line can be skipped to get the latest version (HEAD revision).

Make sure to install from source YDK 0.8.5 from ydk-gen GitHub master branch, because core packages were not generated (must be done inside Cisco). Instead of long procedure try to run this (will install all dependencies, core and Python3 packages in virtual environment):

git clone https://github.com/CiscoDevNet/ydk-gen.git
cd ydk-gen
./install_ydk.sh -l py -c

Also. There is significant difference between XE 16.9.3 and 16.11.1. You might need to make adjustments to the list of files. I suggest you to start from limited set of models, for example the ones that are present in the cisco-ios-xe-latest temporary repository.

Good luck!

Yan Gorelik
YDK Solutions

View solution in original post

3 REPLIES 3
Highlighted
Participant

It all looks correct. The "commitid" line can be skipped to get the latest version (HEAD revision).

Make sure to install from source YDK 0.8.5 from ydk-gen GitHub master branch, because core packages were not generated (must be done inside Cisco). Instead of long procedure try to run this (will install all dependencies, core and Python3 packages in virtual environment):

git clone https://github.com/CiscoDevNet/ydk-gen.git
cd ydk-gen
./install_ydk.sh -l py -c

Also. There is significant difference between XE 16.9.3 and 16.11.1. You might need to make adjustments to the list of files. I suggest you to start from limited set of models, for example the ones that are present in the cisco-ios-xe-latest temporary repository.

Good luck!

Yan Gorelik
YDK Solutions

View solution in original post

Highlighted

Thank you Yan.

 

Unfortunately,  Cisco-IOS-xe_16_11_1.json was failed.  I am not sure if it was regarding internet issue.

I will try it tomorrow morning Your tonight. (have better internet speed).  

 

I will give your update later.

Thank you and have a nice day!

BR

Jacky

Jacky Zhang
Global Telecom
Highlighted

It looks good.
Thanks a lot.
 
ydk) root@YDK64:~/ydk-gen# pip list | grep ydk
ydk 0.8.5
ydk-models-cisco-ios-xe 16.11.1
ydk-models-ietf 0.1.5.post2
ydk-models-openconfig 0.1.8
(ydk) root@YDK64:~/ydk-gen#

Jacky Zhang
Global Telecom