[YANGTOOLS-665] [Yang 1.1] Argument of "If-feature" statement may be a boolean expression over feature names Created: 06/Oct/16  Updated: 10/Apr/22  Resolved: 24/Jan/17

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Peter Kajsa Assignee: Peter Kajsa
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
blocks YANGTOOLS-355 Milestone: Introduce support for YANG... Resolved
is blocked by YANGTOOLS-664 Extend yang statement parser to suppo... Resolved
is blocked by YANGTOOLS-699 Milestone: [Yang 1.1] Yang model API ... Resolved
External issue ID: 6868

 Comments   
Comment by Martin Ciglan [ 19/Oct/16 ]

RFC 7950:
7.20.2. The "if-feature" Statement
The "if-feature" statement makes its parent statement conditional.
The argument is a boolean expression over feature names. In this
expression, a feature name evaluates to "true" if and only if the
feature is supported by the server. The parent statement is
implemented by servers where the boolean expression evaluates to
"true".
The if-feature boolean expression syntax is formally defined by the
rule "if-feature-expr" in Section 14 of RFC7950. Parentheses are used to group
expressions. When the expression is evaluated, the order of
precedence is (highest precedence first): grouping (parentheses),
"not", "and", "or".

Comment by Igor Foltin [ 10/Nov/16 ]

Hello Rashmi, what's your progress on this? If you are working on it, could you please set the status to IN_PROGRESS? Thanks.

Comment by Rashmi Pujar [ 10/Nov/16 ]

(In reply to Igor Foltin from comment #2)
> Hello Rashmi, what's your progress on this? If you are working on it, could
> you please set the status to IN_PROGRESS? Thanks.

Hey Igor, I missed moving it to IN_PROGRESS, will do it now. Yes, I am working on it and should have a patch by today.

Comment by Rashmi Pujar [ 10/Nov/16 ]

API change: https://git.opendaylight.org/gerrit/#/c/48234/

Comment by Rashmi Pujar [ 21/Nov/16 ]

API changes have been merged. Leaving the bug to confirmed state for implementation.

Comment by Peter Kajsa [ 10/Jan/17 ]

https://git.opendaylight.org/gerrit/#/c/49714/

Generated at Wed Feb 07 20:53:56 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.