Closed 111pontes closed 8 years ago
The problem is showing up because the profile file we used to generate YDK 0.4.0 is not using the openconfig github repo to get the BGP models for some reason. The same problem existed in the 0.3.0 profile.
The BGP policy augmentations are available in this github commit of OC BGP models. The 0.4.1 profile can be changed to use these newer models instead of the BGP models which were used for 0.4.0. Below is the diff of the profile file. This change will affect all the sample apps which used the oc bgp model.
--- profiles/ydk/ydk_0_4_0.json 2016-05-16 09:19:50.000000000 -0700
+++ profiles/ydk/ydk_0_4_1.json 2016-05-16 15:06:22.000000000 -0700
@@ -5,18 +5,6 @@
"Copyright": "Cisco",
"models": {
-
- "file": [
- "profiles/ydk/yang/openconfig/bgp@2015-05-15.yang",
- "profiles/ydk/yang/openconfig/bgp-multiprotocol@2015-05-15.yang",
- "profiles/ydk/yang/openconfig/bgp-operational@2015-05-15.yang",
- "profiles/ydk/yang/openconfig/bgp-types@2015-05-15.yang",
- "profiles/ydk/yang/openconfig/oc-xr-mapping@2015-02-10.yang",
- "profiles/ydk/yang/openconfig/policy-types@2015-05-15.yang",
- "profiles/ydk/yang/openconfig/routing-policy@2015-05-15.yang",
- "profiles/ydk/yang/ietf/ietf-interfaces-ext.yang"
- ]
- ,
"_descr_git": "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": [
@@ -468,6 +456,19 @@
"url": "https://github.com/openconfig/public.git",
"commits": [
{
+ "commitid": "b16616eb23cb459c96d7ebfce70b133cd58d56e3",
+ "dir": [
+
+ "release/models/bgp",
+ "release/models/policy"
+ ]
+ }
+ ]
+ },
+ {
+ "url": "https://github.com/openconfig/public.git",
+ "commits": [
+ {
"commitid": "4ab22755c2484e893b2c2b6d88f800b8dd41bb09",
"dir": [
BGP policy augmentations (https://git.io/vwdlH) missing for OC routing-policy APIs (https://git.io/vwdlK).