Re: A problem about anyxml of cost


Xiao SHI <xiao.shi@...>
 

Hi Xin,

By "anyxml" in the YANG Model, the content of the xml data file can by arbitrary. If there is no necessity in using the anyxml statement, I would try to avoid it as much as possible and actually model the data. If it is strictly necessary, then you might need to parse that part of the xml file on your own.

Best,
Xiao

On Mon, Apr 13, 2015 at 10:17 AM, wangxin <xinwang2014@...> wrote:
Hi Xiao,

I have a problem when i tried to set cost value of dst-costs by using yang-generated-code. I found there is no method (looks like setCost(value)) and field for setting it. Maybe it’s because the type of cost is defined as anyxml, and yang-tools just ignore it. Did you also met this problem? And if you met how did you handle it?

Thanks,
Xin

发自 Windows 邮件


Join z.archive.alto-dev@lists.opendaylight.org to automatically receive all group messages.