Anyxml in yang model

Y. Richard Yang

Dear Tony,

The entries in cost maps are modeled in the alto protocol (RFC7285) as JSONValue, to allow different data types: for example, routingcost is a number, but calendar is an array. This was a highly debated feature in the alto protocol design, and the choice of JSONValue is the final outcome, given that alto is based on json. A client can figure out the the type from the cost-type associated with each cost map. I assume that augment based on the type maybe one way, but we do not know about the DOM. We will take a look right away. Any quick pointer?

Thanks a lot!


On Tuesday, April 14, 2015, Tony Tkacik -X (ttkacik - Pantheon Technologies SRO at Cisco) <ttkacik@...> wrote:


We do not support anyxml in currently generated DTOs, but DOM data and DOM broker support it using different

APIs (called DOM APIs).


Which type of data from alto specification do you want to model as anyxml?





From: yangtools-dev-bounces@... [mailto:yangtools-dev-bounces@...] On Behalf Of wangxin
Sent: Monday, April 13, 2015 6:37 PM
To: Robert Varga -X (rovarga - Pantheon Technologies SRO at Cisco); yangtools-dev@...
Cc: alto-dev@...
Subject: [yangtools-dev] Anyxml in yang model


Dear Varga and others in yangtools,


I am working at implementing alto in odl and i use anyxml to define some data in yang model considering the data could be an object, array, string, etc. But i find that there is no method to set its value in the class generated by using yang tools, also there is no field of the data in the class. There is no error when generating the code. It looks like it just skips the anyxml defined data. Did i miss something to make it work? Or it doesn’t support anyxml for now?





发自 Windows 邮件