Bytes encoding

Bytes encoding is performed by the gRPC server, which encodes the values of the leafs as typed values. Table: Mapping of YANG types to gNMI-specified typed values lists the mapping of the individual YANG types to the typed values defined in the gNMI specification in the GitHub repository.

Table: Mapping of YANG types to gNMI-specified typed values
YANG type Typed value

binary

bytes_val

bits

string_val

boolean

bool_val

decimal64

decimal_val

empty

bool_val

enumeration

string_val

identityref

string_val

instance-identifier

string_val

int8

int_val

int16

int_val

int32

int_val

int64

int_val

leafref

type of referenced leaf

string

string_val

uint8

uint_val

uint16

uint_val

uint32

uint_val

uint64

uint_val

union

type of active union member