beautypg.com

Brocade Network OS YANG Reference Manual v4.1.1 User Manual

Page 14

background image

2

Network OS YANG Reference Manual

53-1003230-01

Using the Network OS YANG Reference Manual

1

| +--rw trunk-enable? empty
| +--rw shutdown? empty

In addition to showing the structure, the output of the pyang -f tree command provides information
about each node, as shown in

Figure 1

.

FIGURE 1

Syntax of pyang output

Field definitions and possible values follow:

status

Status of the node can be one of the following values:
+

Current

x

Deprecated

o

Obsolete

flags

The type of information can be one of the following values:
rw Read-write—The node contains configuration data
ro Read-only—The node contains operational data
-x RPC statement
-n Notification (not supported)

name

The name of the node can be further modified by one of the following values:
(name) Choice

node

:(name)

Case node

prefix:name Augmented from external module

options

The following optional values can be used:
?

Optional leaf or presence container

*

Leaf list

[keys]

Keys for a list

type

The type of the leaf or leaf-list. If the specified type is other than one of the
basic types, then the type is defined in a typedef statement in the .yang file.