Loading...
Searching...
No Matches
Schema nodes flags
Trees » Schema Tree
Collaboration diagram for Schema nodes flags:

## Topics

| Compiled schema nodes flags
| Parsed schema nodes flags

## Macros

#define | LYS_CONFIG_MASK 0x03
#define | LYS_CONFIG_R 0x02
#define | LYS_CONFIG_W 0x01
#define | LYS_DISABLED 0x0100
#define | LYS_DOUBLEQUOTED 0x0200
#define | LYS_FENABLED 0x20
#define | LYS_FLAGS_COMPILED_MASK 0xff
#define | LYS_INTERNAL 0x1000
#define | LYS_IS_ENUM 0x0200
#define | LYS_IS_INPUT 0x1000
#define | LYS_IS_NOTIF 0x4000
#define | LYS_IS_OUTPUT 0x2000
#define | LYS_KEY 0x0100
#define | LYS_KEYLESS 0x0200
#define | LYS_MAND_FALSE 0x40
#define | LYS_MAND_MASK 0x60
#define | LYS_MAND_TRUE 0x20
#define | LYS_ORDBY_MASK 0xC0
#define | LYS_ORDBY_SYSTEM 0x80
#define | LYS_ORDBY_USER 0x40
#define | LYS_PRESENCE 0x80
#define | LYS_SET_BASE 0x0001
#define | LYS_SET_BIT 0x0002
#define | LYS_SET_CONFIG 0x0800
#define | LYS_SET_DFLT 0x0200
#define | LYS_SET_ENUM 0x0004
#define | LYS_SET_FRDIGITS 0x0008
#define | LYS_SET_LENGTH 0x0010
#define | LYS_SET_MAX 0x0400
#define | LYS_SET_MIN 0x0200
#define | LYS_SET_PATH 0x0020
#define | LYS_SET_PATTERN 0x0040
#define | LYS_SET_RANGE 0x0080
#define | LYS_SET_REQINST 0x0200
#define | LYS_SET_TYPE 0x0100
#define | LYS_SET_UNITS 0x0400
#define | LYS_SET_VALUE 0x0200
#define | LYS_SINGLEQUOTED 0x0100
#define | LYS_STATUS_CURR 0x04
#define | LYS_STATUS_DEPRC 0x08
#define | LYS_STATUS_MASK 0x1C
#define | LYS_STATUS_OBSLT 0x10
#define | LYS_UNIQUE 0x80
#define | LYS_USED_GRP 0x0400
#define | LYS_YIN_ARGUMENT 0x0800
#define | LYS_YIN_ATTR 0x0400
#define | LYS_YINELEM_FALSE 0x0100
#define | LYS_YINELEM_MASK 0x0180
#define | LYS_YINELEM_TRUE 0x80

## Detailed Description

Various flags for schema nodes (parsed as well as compiled).

## Macro Definition Documentation

## LYS_CONFIG_MASK

#define LYS_CONFIG_MASK 0x03

mask for config value

Definition at line 655 of file tree_schema.h.

## LYS_CONFIG_R

#define LYS_CONFIG_R 0x02

config false;

Definition at line 654 of file tree_schema.h.

## LYS_CONFIG_W

#define LYS_CONFIG_W 0x01

config true;

Definition at line 653 of file tree_schema.h.

## LYS_DISABLED

#define LYS_DISABLED 0x0100

internal flag for a disabled statement, used only for bits/enums

Definition at line 675 of file tree_schema.h.

## LYS_DOUBLEQUOTED

#define LYS_DOUBLEQUOTED 0x0200

flag for double-quoted string (argument of an extension instance's substatement), only when the source is YANG

Definition at line 712 of file tree_schema.h.

## LYS_FENABLED

#define LYS_FENABLED 0x20

feature enabled flag, applicable only to lysp_feature.

Definition at line 676 of file tree_schema.h.

## LYS_FLAGS_COMPILED_MASK

#define LYS_FLAGS_COMPILED_MASK 0xff

mask for flags that maps to the compiled structures

Definition at line 728 of file tree_schema.h.

## LYS_INTERNAL

#define LYS_INTERNAL 0x1000

flag to identify internal parsed statements that should not be printed

Definition at line 718 of file tree_schema.h.

## LYS_IS_ENUM

#define LYS_IS_ENUM 0x0200

flag to simply distinguish type in struct lysc_type_bitenum_item

Definition at line 720 of file tree_schema.h.

## LYS_IS_INPUT

#define LYS_IS_INPUT 0x1000

flag for nodes that are in the subtree of an input statement

Definition at line 722 of file tree_schema.h.

## LYS_IS_NOTIF

#define LYS_IS_NOTIF 0x4000

flag for nodes that are in the subtree of a notification statement

Definition at line 726 of file tree_schema.h.

## LYS_IS_OUTPUT

#define LYS_IS_OUTPUT 0x2000

flag for nodes that are in the subtree of an output statement

Definition at line 724 of file tree_schema.h.

## LYS_KEY

#define LYS_KEY 0x0100

flag for leafs being a key of a list, applicable only to lysc_node_leaf

Definition at line 673 of file tree_schema.h.

## LYS_KEYLESS

#define LYS_KEYLESS 0x0200

flag for list without any key, applicable only to lysc_node_list

Definition at line 674 of file tree_schema.h.

## LYS_MAND_FALSE

#define LYS_MAND_FALSE 0x40

mandatory false; applicable only to lysp_node_choice/lysc_node_choice, lysp_node_leaf/lysc_node_leaf and lysp_node_anydata/lysc_node_anydata. This flag is present only in case the mandatory false statement was explicitly specified.

Definition at line 665 of file tree_schema.h.

## LYS_MAND_MASK

#define LYS_MAND_MASK 0x60

mask for mandatory values

Definition at line 668 of file tree_schema.h.

## LYS_MAND_TRUE

#define LYS_MAND_TRUE 0x20

mandatory true; applicable only to lysp_node_choice/lysc_node_choice, lysp_node_leaf/lysc_node_leaf and lysp_node_anydata/lysc_node_anydata. The lysc_node_leaflist and lysc_node_leaflist have this flag in case that min-elements > 0. The lysc_node_container has this flag if it is not a presence container and it has at least one child with LYS_MAND_TRUE.

Definition at line 660 of file tree_schema.h.

## LYS_ORDBY_MASK

#define LYS_ORDBY_MASK 0xC0

mask for ordered-by values

Definition at line 682 of file tree_schema.h.

## LYS_ORDBY_SYSTEM

#define LYS_ORDBY_SYSTEM 0x80

ordered-by system configuration lists, applicable only to lysc_node_leaflist/lysp_node_leaflist and lysc_node_list/lysp_node_list

Definition at line 677 of file tree_schema.h.

## LYS_ORDBY_USER

#define LYS_ORDBY_USER 0x40

ordered-by user configuration lists, applicable only to lysc_node_leaflist/lysp_node_leaflist and lysc_node_list/lysp_node_list; is always set for state leaf-lists, and key-less lists

Definition at line 679 of file tree_schema.h.

## LYS_PRESENCE

#define LYS_PRESENCE 0x80

flag for presence property of a container, but it is not only for explicit presence containers, but also for NP containers with some meaning, applicable only to lysc_node_container

Definition at line 669 of file tree_schema.h.

## LYS_SET_BASE

#define LYS_SET_BASE 0x0001

type's flag for present base substatement

Definition at line 692 of file tree_schema.h.

## LYS_SET_BIT

#define LYS_SET_BIT 0x0002

type's flag for present bit substatement

Definition at line 693 of file tree_schema.h.

## LYS_SET_CONFIG

#define LYS_SET_CONFIG 0x0800

flag to know if the config property was set explicitly (flag set) or it is inherited.

Definition at line 708 of file tree_schema.h.

## LYS_SET_DFLT

#define LYS_SET_DFLT 0x0200

flag to mark leaf/leaflist with own (or refined) default value, not a default value taken from its type, and default cases of choice. This information is important for refines, since it is prohibited to make leafs with default statement mandatory. In case the default leaf value is taken from type, it is thrown away when it is refined to be mandatory node. Similarly it is used for deviations to distinguish between own default or the default values taken from the type.

Definition at line 702 of file tree_schema.h.

## LYS_SET_ENUM

#define LYS_SET_ENUM 0x0004

type's flag for present enum substatement

Definition at line 694 of file tree_schema.h.

## LYS_SET_FRDIGITS

#define LYS_SET_FRDIGITS 0x0008

type's flag for present fraction-digits substatement

Definition at line 695 of file tree_schema.h.

## LYS_SET_LENGTH

#define LYS_SET_LENGTH 0x0010

type's flag for present length substatement

Definition at line 696 of file tree_schema.h.

## LYS_SET_MAX

#define LYS_SET_MAX 0x0400

max attribute is set

Definition at line 690 of file tree_schema.h.

## LYS_SET_MIN

#define LYS_SET_MIN 0x0200

min attribute is set

Definition at line 689 of file tree_schema.h.

## LYS_SET_PATH

#define LYS_SET_PATH 0x0020

type's flag for present path substatement

Definition at line 697 of file tree_schema.h.

## LYS_SET_PATTERN

#define LYS_SET_PATTERN 0x0040

type's flag for present pattern substatement

Definition at line 698 of file tree_schema.h.

## LYS_SET_RANGE

#define LYS_SET_RANGE 0x0080

type's flag for present range substatement

Definition at line 699 of file tree_schema.h.

## LYS_SET_REQINST

#define LYS_SET_REQINST 0x0200

type's flag for present require-instance substatement

Definition at line 701 of file tree_schema.h.

## LYS_SET_TYPE

#define LYS_SET_TYPE 0x0100

type's flag for present type substatement

Definition at line 700 of file tree_schema.h.

## LYS_SET_UNITS

#define LYS_SET_UNITS 0x0400

flag to know if the leaf's/leaflist's units are their own (flag set) or it is taken from the type.

Definition at line 707 of file tree_schema.h.

## LYS_SET_VALUE

#define LYS_SET_VALUE 0x0200

value attribute is set

Definition at line 688 of file tree_schema.h.

## LYS_SINGLEQUOTED

#define LYS_SINGLEQUOTED 0x0100

flag for single-quoted string (argument of an extension instance's substatement), only when the source is YANG

Definition at line 710 of file tree_schema.h.

## LYS_STATUS_CURR

#define LYS_STATUS_CURR 0x04

status current;

Definition at line 656 of file tree_schema.h.

## LYS_STATUS_DEPRC

#define LYS_STATUS_DEPRC 0x08

status deprecated;

Definition at line 657 of file tree_schema.h.

## LYS_STATUS_MASK

#define LYS_STATUS_MASK 0x1C

mask for status value

Definition at line 659 of file tree_schema.h.

## LYS_STATUS_OBSLT

#define LYS_STATUS_OBSLT 0x10

status obsolete;

Definition at line 658 of file tree_schema.h.

## LYS_UNIQUE

#define LYS_UNIQUE 0x80

flag for leafs being part of a unique set, applicable only to lysc_node_leaf

Definition at line 672 of file tree_schema.h.

## LYS_USED_GRP

#define LYS_USED_GRP 0x0400

internal flag for validating not-instantiated groupings (resp. do not validate again the instantiated groupings).

Definition at line 686 of file tree_schema.h.

## LYS_YIN_ARGUMENT

#define LYS_YIN_ARGUMENT 0x0800

flag to identify statement representing extension's argument, only when the source is YIN

Definition at line 716 of file tree_schema.h.

## LYS_YIN_ATTR

#define LYS_YIN_ATTR 0x0400

flag to identify YIN attribute parsed as extension's substatement, only when the source is YIN

Definition at line 715 of file tree_schema.h.

## LYS_YINELEM_FALSE

#define LYS_YINELEM_FALSE 0x0100

yin-element false for extension's argument

Definition at line 684 of file tree_schema.h.

## LYS_YINELEM_MASK

#define LYS_YINELEM_MASK 0x0180

mask for yin-element value

Definition at line 685 of file tree_schema.h.

## LYS_YINELEM_TRUE

#define LYS_YINELEM_TRUE 0x80

yin-element true for extension's argument

Definition at line 683 of file tree_schema.h.