Skip to content

Commit

Permalink
lib.yang.binary: support serializing leafrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Nov 17, 2022
1 parent 1896a2c commit 78f1a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/yang/binary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ local function data_emitter(production)
l:save(stream)
end
end
local native_types = lib.set('enumeration', 'identityref', 'string')
local native_types = lib.set('enumeration', 'identityref', 'leafref', 'string')
function handlers.scalar(production)
local primitive_type = production.argument_type.primitive_type
local type = assert(value.types[primitive_type], "unsupported type: "..primitive_type)
Expand Down

0 comments on commit 78f1a11

Please sign in to comment.