Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
2909
Description
Hi,
I have a problem with parse xml to json. If I do double referencing on leaf, gson evaluates type of uint32 like string.
input:
<cont xmlns="main:module"
xmlns:cont-augment-module="cont:augment:module">
<cont-augment-module:lf7>200</cont-augment-module:lf7>
</cont>
yang context (for full files see attachments):
module main-module {
namespace "main:module";
prefix "mainmod";
revision 2013-12-2 {
}
container cont {
leaf lf1
}
}
module cont-augment-module {
namespace "cont:augment:module";
prefix "cntaugmod";
import main-module
{prefix mamo; revision-date 2013-12-2;} revision 2013-12-2 {
}
augment "/mamo:cont" {
leaf lf4 {
type leafref
}
leaf lf7 {
type leafref
}
}
}