About cost in yang model


xinwang
 

Hi all,

We haven’t decided how to handle anyxml issue in yang model. And here is my idea. We use augment instead of changing anyxml into string. The backgroud is though cost has multiple structures like string, list, etc, for one provider, the type of cost should be static, which means for example, alto-xxx provides one and just one type of cost, cost-xxx, at the same time alto-yyy provides another one and only one type of cost, cost-yyy. Any provider provides only one type. And if it provides cost, then it should use augment statement to add new cost type.

This still has limitations considering when using restconf to get value, it should specify the cost type instead of getting any type of cost.

Does this make sense?

Thanks,
Xin

发自 Windows 邮件