I am using the odl aluminium version. I have connect the juniper SRX320 device having junos verison 19.4R3-S1.3.
When i am trying to compile this attached, it's not properly differentiating between a type defined in Yang called String and the inbuilt java.lang.String. This is part of that attaced yang model ===============================
choice property-value {
case case_1 {
list string {
key name;
ordered-by user;
description "Value type is strings";
max-elements 256;
leaf name {
description "String value";
type string {
length "1 .. 32";
}
mandatory true;
}
uses apply-advanced;
}
}
}
These following exception i am getting: ==============================
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sample-api: Compilation failure: Compilation failure:
[ERROR] /home/user/work/netos/sample/api/target/generated-sources/mdsal-binding/org/opendaylight/yang/gen/v1/http/yang/juniper/net/junos/es/conf/root/rev190101/juniper/tenant/security/dynamic/address/address/name/profile/category/property/property/value/case_1/StringBuilder.java:[160,33] cannot find symbol
[ERROR] symbol: method length()
[ERROR] location: variable value of type org.opendaylight.yang.gen.v1.http.yang.juniper.net.junos.es.conf.root.rev190101.juniper.tenant.security.dynamic.address.address.name.profile.category.property.property.value.case_1.String
[ERROR] /home/user/work/netos/sample/api/target/generated-sources/mdsal-binding/org/opendaylight/yang/gen/v1/http/yang/juniper/net/junos/es/conf/root/rev190101/juniper/tenant/security/dynamic/address/address/name/profile/category/property/property/value/case_1/StringBuilder.java:[169,30] incompatible types: java.lang.String cannot be converted to org.opendaylight.yang.gen.v1.http.yang.juniper.net.junos.es.conf.root.rev190101.juniper.tenant.security.dynamic.address.address.name.profile.category.property.property.value.case_1.String
I am using the old aluminium version. I have connect the juniper SRX320 device having junos verison 19.4R3-S1.3.
[snip]
These following exception i am getting: ============================== *[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sample-api: Compilation failure: Compilation failure:* *[ERROR] /home/hscuser/zeetta_work/netos/sample/api/target/generated-sources/mdsal-binding/org/opendaylight/yang/gen/v1/http/yang/juniper/net/junos/es/conf/root/rev190101/juniper/tenant/security/dynamic/address/address/name/profile/category/property/property/value/case_1/StringBuilder.java:[160,33] cannot find symbol* *[ERROR] symbol: method length()* *[ERROR] location: variable value of type org.opendaylight.yang.gen.v1.http.yang.juniper.net.junos.es.conf.root.rev190101.juniper.tenant.security.dynamic.address.address.name.profile.category.property.property.value.case_1.String* *[ERROR] /home/hscuser/zeetta_work/netos/sample/api/target/generated-sources/mdsal-binding/org/opendaylight/yang/gen/v1/http/yang/juniper/net/junos/es/conf/root/rev190101/juniper/tenant/security/dynamic/address/address/name/profile/category/property/property/value/case_1/StringBuilder.java:[169,30] incompatible types: java.lang.String cannot be converted to org.opendaylight.yang.gen.v1.http.yang.juniper.net.junos.es.conf.root.rev190101.juniper.tenant.security.dynamic.address.address.name.profile.category.property.property.value.case_1.String* *[ERROR] -> [Help 1]*
Looks like a bug, please file an issue with MD-SAL project in jira.opendaylight.org.