Schema

Keys

Leafs

Enum Classes

class NetconfState.Schemas.Schema

Bases: Entity

Class Hierarchy: NetconfState Schemas Schema

This class represents state data.

List of data model schemas supported by the server.

identifier(key)

Identifier to uniquely reference the schema. The identifier is used in the <get-schema> operation and may be used for other purposes such as file retrieval. For modeling languages that support or require a data model name (e.g., YANG module name) the identifier MUST match that name. For YANG data models, the identifier is the name of the module or submodule. In other cases, an identifier such as a filename MAY be used instead

type: str

config: False

version(key)

Version of the schema supported. Multiple versions MAY be supported simultaneously by a NETCONF server. Each version MUST be reported individually in the schema list, i.e., with same identifier, possibly different location, but different version. For YANG data models, version is the value of the most recent YANG ‘revision’ statement in the module or submodule, or the empty string if no ‘revision’ statement is present

type: str

config: False

format(key)

The data modeling language the schema is written in (currently xsd, yang, yin, rng, or rnc). For YANG data models, ‘yang’ format MUST be supported and ‘yin’ format MAY also be provided

type: one of the below values: Xsd

config: False

namespace

The XML namespace defined by the data model. For YANG data models, this is the module’s namespace. If the list entry describes a submodule, this field contains the namespace of the module to which the submodule belongs

type: str

mandatory: True

config: False

location

One or more locations from which the schema can be retrieved. This list SHOULD contain at least one entry per schema. A schema entry may be located on a remote file system (e.g., reference to file system for ftp retrieval) or retrieved directly from a server supporting the <get-schema> operation (denoted by the value ‘NETCONF’)

type: union of the below types:

type: list of Location

type: list of str

config: False