Hi Yuta,
Have you found this in some of existing models available in ONOS? Or somewhere in other standard YANG?
Since YANG identifier and JAVA identifier follows different naming conventions, there could be more situations which can result in name collision (for example: two containers with name “test-cont” and “test.cont”), so we might have to look for a holistic solution without breaking backward compatibility, also we need to see if we can completely avoid it or can just reduce the probability.
So far the plan was to document conversion rules in wiki for user information and usage and in the rare scenarios when there is a conflict manually modify YANG. But yes if see such scenarios are many as per standard YANG we might have to look for early resolution.
Thanks and Regards,
Gaurav
--
You received this message because you are subscribed to the Google Groups "Dynamic configuration" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
brigade-dyncon...@onosproject.org.
To post to this group, send email to
brigade-...@onosproject.org.
Visit this group at
https://groups.google.com/a/onosproject.org/group/brigade-dynconfig/.
To view this discussion on the web visit
https://groups.google.com/a/onosproject.org/d/msgid/brigade-dynconfig/CAEJoDtO3D5U6Bf3y6%3DLrdoZXAKCw9cgHCPCOvA_HGFY_of%2B6bg%40mail.gmail.com.
For more options, visit
https://groups.google.com/a/onosproject.org/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to brigade-dynconfig+unsubscribe@onosproject.org.
To post to this group, send email to brigade-dynconfig@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/brigade-dynconfig/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/brigade-dynconfig/CAEJoDtO3D5U6Bf3y6%3DLrdoZXAKCw9cgHCPCOvA_HGFY_of%2B6bg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/onosproject.org/d/optout.
--
You received this message because you are subscribed to the Google Groups "Dynamic configuration" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brigade-dynconfig+unsubscribe@onosproject.org.
To post to this group, send email to brigade-dynconfig@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/brigade-dynconfig/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/brigade-dynconfig/2F2059F256F9B24F82EAC5EE47F446C6E898DD12%40dggemi501-mbx.china.huawei.com.
Hi Yuta,
Please see in-line reply.
From: Yuta Higuchi [mailto:y-hi...@opennetworking.org]
Sent: 2017年8月11日
11:09
To: Gaurav agrawal
Cc: ONOS Dynamic Configuration Brigade
Subject: Re: [brigade-dynconfig] Name collision due to "Default" prefix
Hi Gaurav,
No, this was observed by our folks testing ONOS using yang obtained from some actual device,
so it's not from existing models in the repo.
[Gaurav] So if I understand correctly its private YANG and not a standard one.
May be one way to maintain backward compatibility and workaround this problem
could be by making that prefix a configurable compiler parameter.
So that person registering YANG can pass it as part of yang_model( ... ) parameter, etc.
What do you think?
[Gaurav] Yes it looks to be a good approach for this specific scenario but there could be more, so whether we should handle them on a case by basis or list all of them and handle together. I think we can maintain a list of such collision and during next release cycle can look into it. Also at beginning we may prioritize problems related to standard YANG if any, private YANG if encounters such collision can be modified manually for time being.
I'm assuming that "Default" getting added by compiler only has impact on POJO object,
and will never appear in XML/JSON representation.
Is my understanding correct?
[Gaurav] Yes, you are right.
Thanks,
Yuta
On Thu, Aug 10, 2017 at 10:21 PM, Gaurav agrawal <gaurav....@huawei.com> wrote:
Hi Yuta,
Have you found this in some of existing models available in ONOS? Or somewhere in other standard YANG?
Since YANG identifier and JAVA identifier follows different naming conventions, there could be more situations which can result in name collision (for example: two containers with name “test-cont” and “test.cont”), so we might have to look for a holistic solution without breaking backward compatibility, also we need to see if we can completely avoid it or can just reduce the probability.
So far the plan was to document conversion rules in wiki for user information and usage and in the rare scenarios when there is a conflict manually modify YANG. But yes if see such scenarios are many as per standard YANG we might have to look for early resolution.
Thanks and Regards,
Gaurav
To unsubscribe from this group and stop receiving emails from it, send an email to
brigade-dyncon...@onosproject.org.
To post to this group, send email to
brigade-...@onosproject.org.
Visit this group at
https://groups.google.com/a/onosproject.org/group/brigade-dynconfig/.
To view this discussion on the web visit
https://groups.google.com/a/onosproject.org/d/msgid/brigade-dynconfig/CAEJoDtO3D5U6Bf3y6%3DLrdoZXAKCw9cgHCPCOvA_HGFY_of%2B6bg%40mail.gmail.com.
For more options, visit
https://groups.google.com/a/onosproject.org/d/optout.
--
You received this message because you are subscribed to the Google Groups "Dynamic configuration" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
brigade-dyncon...@onosproject.org.
To post to this group, send email to
brigade-...@onosproject.org.
Visit this group at
https://groups.google.com/a/onosproject.org/group/brigade-dynconfig/.
To view this discussion on the web visit
https://groups.google.com/a/onosproject.org/d/msgid/brigade-dynconfig/2F2059F256F9B24F82EAC5EE47F446C6E898DD12%40dggemi501-mbx.china.huawei.com.
For more options, visit
https://groups.google.com/a/onosproject.org/d/optout.
--
You received this message because you are subscribed to the Google Groups "Dynamic configuration" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
brigade-dyncon...@onosproject.org.
To post to this group, send email to
brigade-...@onosproject.org.
Visit this group at
https://groups.google.com/a/onosproject.org/group/brigade-dynconfig/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/brigade-dynconfig/CAEJoDtPoU0gL3-%3DRAou5e18pJE6m%2BXXTKtO8an3mZA%2BpYWEXJQ%40mail.gmail.com.
Hi Yuta,
Please see in-line reply.
To unsubscribe from this group and stop receiving emails from it, send an email to brigade-dynconfig+unsubscribe@onosproject.org.
To post to this group, send email to brigade-dynconfig@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/brigade-dynconfig/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/brigade-dynconfig/CAEJoDtO3D5U6Bf3y6%3DLrdoZXAKCw9cgHCPCOvA_HGFY_of%2B6bg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/onosproject.org/d/optout.
--
You received this message because you are subscribed to the Google Groups "Dynamic configuration" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brigade-dynconfig+unsubscribe@onosproject.org.
To post to this group, send email to brigade-dynconfig@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/brigade-dynconfig/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/brigade-dynconfig/2F2059F256F9B24F82EAC5EE47F446C6E898DD12%40dggemi501-mbx.china.huawei.com.
For more options, visit https://groups.google.com/a/onosproject.org/d/optout.
--
You received this message because you are subscribed to the Google Groups "Dynamic configuration" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brigade-dynconfig+unsubscribe@onosproject.org.
To post to this group, send email to brigade-dynconfig@onosproject.org.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/brigade-dynconfig/CAEJoDtPoU0gL3-%3DRAou5e18pJE6m%2BXXTKtO8an3mZA%2BpYWEXJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/a/onosproject.org/d/optout.
--
You received this message because you are subscribed to the Google Groups "Dynamic configuration" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brigade-dynconfig+unsubscribe@onosproject.org.
To post to this group, send email to brigade-dynconfig@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/brigade-dynconfig/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/brigade-dynconfig/2F2059F256F9B24F82EAC5EE47F446C6E898E042%40dggemi501-mbx.china.huawei.com.