Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openconfig_routing_policy: Libyang ERROR: Schema node "INLINE" not found (../config/method=INLINE) #540

Closed
ghost opened this issue Sep 8, 2017 · 8 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Sep 8, 2017

code block:

def config_bgpdefinedset_extcommunityset(crud_service, provider):
    routing_policy_cfg = openconfig_routing_policy.RoutingPolicy()
    extcommunityset_cfg = routing_policy_cfg.defined_sets.bgp_defined_sets.ext_community_sets.ExtCommunitySet()
    extcommunityset_cfg.ext_community_set_name = 'extcom1'
    extcommunityset_cfg.config.ext_community_member.append('extmember1')
    extcommunityset_cfg.config.ext_community_set_name = 'extcom1'
    routing_policy_cfg.defined_sets.bgp_defined_sets.ext_community_sets.ext_community_set.append(extcommunityset_cfg)
    try:
        crud_service.create(provider, routing_policy_cfg)
        crud_service.read(provider, routing_policy_cfg)
    except YPYError:
        print('An error occurred creating the extcommunityset configuration.')

RPC error:

Executing CRUD create operation
Executing CRUD create operation
Libyang ERROR: Schema node "INLINE" not found (../config/method=INLINE).
Libyang ERROR: Schema node "INLINE" not found (../config/method=INLINE).
Libyang ERROR: Resolving when condition "../config/method=INLINE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-community/inline'
Libyang ERROR: Resolving when condition "../config/method=INLINE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-community/inline'
Libyang ERROR: Schema node "REFERENCE" not found (../config/method=REFERENCE).
Libyang ERROR: Schema node "REFERENCE" not found (../config/method=REFERENCE).
Libyang ERROR: Resolving when condition "../config/method=REFERENCE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-community/reference'
Libyang ERROR: Resolving when condition "../config/method=REFERENCE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-community/reference'
Libyang ERROR: Schema node "INLINE" not found (../config/method=INLINE).
Libyang ERROR: Schema node "INLINE" not found (../config/method=INLINE).
Libyang ERROR: Resolving when condition "../config/method=INLINE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-ext-community/inline'
Libyang ERROR: Resolving when condition "../config/method=INLINE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-ext-community/inline'
Libyang ERROR: Schema node "REFERENCE" not found (../config/method=REFERENCE).
Libyang ERROR: Schema node "REFERENCE" not found (../config/method=REFERENCE).
Libyang ERROR: Resolving when condition "../config/method=REFERENCE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-ext-community/reference'
Libyang ERROR: Resolving when condition "../config/method=REFERENCE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-ext-community/reference'
Libyang ERROR: Module "openconfig-bgp-policy" parsing failed.
Libyang ERROR: Module "openconfig-bgp-policy" parsing failed.
Libyang ERROR: Schema node "INLINE" not found (../config/method=INLINE).
Libyang ERROR: Schema node "INLINE" not found (../config/method=INLINE).
Libyang ERROR: Resolving when condition "../config/method=INLINE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-community/inline'
Libyang ERROR: Resolving when condition "../config/method=INLINE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-community/inline'
Libyang ERROR: Schema node "REFERENCE" not found (../config/method=REFERENCE).
Libyang ERROR: Schema node "REFERENCE" not found (../config/method=REFERENCE).
Libyang ERROR: Resolving when condition "../config/method=REFERENCE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-community/reference'
Libyang ERROR: Resolving when condition "../config/method=REFERENCE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-community/reference'
Libyang ERROR: Schema node "INLINE" not found (../config/method=INLINE).
Libyang ERROR: Schema node "INLINE" not found (../config/method=INLINE).
Libyang ERROR: Resolving when condition "../config/method=INLINE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-ext-community/inline'
Libyang ERROR: Resolving when condition "../config/method=INLINE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-ext-community/inline'
Libyang ERROR: Schema node "REFERENCE" not found (../config/method=REFERENCE).
Libyang ERROR: Schema node "REFERENCE" not found (../config/method=REFERENCE).
Libyang ERROR: Resolving when condition "../config/method=REFERENCE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-ext-community/reference'
Libyang ERROR: Resolving when condition "../config/method=REFERENCE" failed. Path: '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-ext-community/reference'
Libyang ERROR: Module "openconfig-bgp-policy" parsing failed.
Libyang ERROR: Module "openconfig-bgp-policy" parsing failed.
Libyang ERROR: Schema node not found. Path: 'openconfig-bgp-policy:bgp-defined-sets'
Libyang ERROR: Schema node not found. Path: 'openconfig-bgp-policy:bgp-defined-sets'
Libyang ERROR: Schema node not found. Path: 'openconfig-bgp-policy:bgp-defined-sets'
Libyang ERROR: Schema node not found. Path: 'openconfig-bgp-policy:bgp-defined-sets'
Invalid path: openconfig-bgp-policy:bgp-defined-sets
Invalid path: openconfig-bgp-policy:bgp-defined-sets
An error occurred creating the extcommunityset configuration.

@ghost ghost added the bug label Sep 8, 2017
@ghost ghost assigned ylil93 Sep 14, 2017
@ylil93
Copy link
Contributor

ylil93 commented Sep 14, 2017

This has been fixed in the new version. I got no such error running the code snippet

@ylil93 ylil93 closed this as completed Sep 14, 2017
@mjegathe
Copy link

@ylil93 Can you tell in which version of ydk the issue has been fixed. Because i have faced this issue in ydk 0,6.0.

@ylil93
Copy link
Contributor

ylil93 commented Sep 18, 2017

@mjegathe My version of ydk was 0.6.0 and my version of openconfig bundle was 0.1.3. You may need to reinstall the latest openconfig bundle if you're running into this issue.

You can check out these links for doing so:
https://github.com/CiscoDevNet/ydk-gen/tree/master/sdk/cpp#how-to-install
https://github.com/CiscoDevNet/ydk-gen/tree/master/sdk/python#how-to-install

@mjegathe
Copy link

mjegathe commented Sep 20, 2017

@ylil93
YDK version used to run script:
-bash-4.2$ pip list | grep ydk
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
ydk (0.6.0)
ydk-models-cisco-ios-xr (6.2.2)
ydk-models-ietf (0.1.3)
ydk-models-oc-srini-optical-amplifier (0.1.0)
ydk-models-openconfig (0.1.3)
ydk-models-Openconfig-Channelmonitor-check (0.1.0)

The same version i have used to run the script and i am getting the error.
Error trace for aspathset.txt

@mjegathe
Copy link

@ylil93 Can you cross check once again because i am using the same version of ydk (0.6.0)and openconfig(0.1.3) but i am getting the error.

@ylil93
Copy link
Contributor

ylil93 commented Sep 22, 2017

@mjegathe
I ran the code snippet verbatim in two separate environments and could not reproduce this error. I suggest you double check your installations of ydk and openconfig or reinstall them.

@mjegathe
Copy link

mjegathe commented Sep 27, 2017

I have installed new version of ydk(0.6.1) and openconfig(0.1.4) and still facing the same issue. I have raised a new issue for this since this bug is closed.

#580

@ylil93
Copy link
Contributor

ylil93 commented Sep 27, 2017

It's possible the issue has to do with running on XR. I'll try to reproduce the error on an XR image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants