econfd_schema Module

Support for using schema information in the Erlang API.

Keeps schema info in a set of ets tables named by the toplevel namespace.

Types

confd_cs_choice/0

-type confd_cs_choice() :: #confd_cs_choice{}.

confd_cs_node/0

-type confd_cs_node() :: #confd_cs_node{}.

confd_nsinfo/0

-type confd_nsinfo() :: #confd_nsinfo{}.

confd_type_cbs/0

-type confd_type_cbs() :: #confd_type_cbs{}.

Functions

choice_children/1

Related types: confd_cs_choice(), confd_cs_node(), econfd:qtag()

Get a flat list of children for a confd_cs_node(), with any choice/case structure(s) removed.

get_builtin_type/1

get_cs/2

Related types: confd_cs_node(), econfd:namespace(), econfd:tagpath()

Find schema node by namespace and tagpath.

get_nslist/0

Related types: confd_nsinfo()

Get a list of loaded namespaces with info.

get_type/1

Related types: econfd:type()

Get schema type definition identifier for built-in type.

get_type/2

Related types: econfd:namespace(), econfd:type()

Get schema type definition identifier for type defined in namespace.

ikeypath2cs/1

Related types: confd_cs_node(), econfd:ikeypath()

Find schema node by ikeypath.

ikeypath2nstagpath/1

ikeypath2nstagpath/2

load/1

Related types: econfd:error_reason()

Load schema info from ConfD.

load/2

Related types: econfd:error_reason(), econfd:ip()

register_type_cbs/1

Related types: confd_type_cbs()

Register callbacks for a user-defined type. For an application running in its own Erlang VM, this function registers the callbacks in the loaded schema information, similar to confd_register_node_type() in the C API. For an application running inside ConfD, this function registers the callbacks in ConfD's internal schema information, similar to using a shared object with confd_type_cb_init() in the C API.

str2val/2

Related types: confd_cs_node(), econfd:error_reason(), econfd:type(), econfd:value()

Convert string to value based on schema type.

Note: For type identityref below a mount point (device data in NSO), TypeId must be confd_cs_node().

val2str/2

Related types: confd_cs_node(), econfd:error_reason(), econfd:type(), econfd:value()

Convert value to string based on schema type.

Last updated

Was this helpful?