Yang tool could not generate correct method when leaf name is "interface" in a list

asked 2015-05-12 02:27:04 -0700

Yesmanlucky gravatar image

Yang: module exa-base { namespace "http://www.calix.com/ns/exa"; prefix exa;

revision "2015-05-12" {
    description "test java word";
   }


container class {
    list interfaceList{
            key interface;
            leaf interface {
                type uint32{
                    range "0..4294967295";
                }
            }
     }
}

}

We find The Class InterfaceList generated from Yang define, has method “java.lang.Long getInterface();”; But in the InterfaceListBuilder’s constructor, calle method “base.get_interface()”, and base’s type is InterfaceList

edit retag flag offensive close merge delete