Replies: 6 comments 5 replies
-
Ugh, I agree with it being a bad decision. I agree that it's best for it to be ignored. Rather than implementing a general "ignore-unknown-keywords" I think we should specifically just ignore this keyword. What do you think? |
Beta Was this translation helpful? Give feedback.
-
Sigh, I'm not excited about these "meta-quirks" but they are very easy to implement and if they can help other projects then I am very happy to add them. The idea of Puccini is to enable functionality, not to disable it. I should have time this week to implement this, I can probably do it in just minutes of work. |
Beta Was this translation helpful? Give feedback.
-
Could you help by providing a list of which quirks should go under "etsi" and which should go under "onap"? |
Beta Was this translation helpful? Give feedback.
-
Support for quirk "annotations.ignore" was just commited. |
Beta Was this translation helpful? Give feedback.
-
Thanks, Tal: But in case you decide to have the metaquirks:
When deciding a sensible name for the ETSI SOL001 metaquirk, SOL001 refers only to the format of the tosca yaml files. The CSAR themselves are defined in SOL004 and SOL007. I suggest "ETSINFV" as the name. HTH, |
Beta Was this translation helpful? Give feedback.
-
Today I performed the first test with a CSAR coming from ONAP with the new version and the onap metaquirk. The results are discouraging, but puccini is not to blame for it (ONAP is): tosca.capabilities.Endpoint.Public:
derived_from: tosca.capabilities.Endpoint
properties:
network_name:
default: PUBLIC
..... what the ONAP template had was: tosca.capabilities.Endpoint.Public:
derived_from: tosca.capabilities.Endpoint
properties:
network_name: PUBLIC
.....
Tal, except for adding the quirk to the metaquirk as specified above, I don't think that puccini should stretch so far as to "cover for" all these bugs in ONAP. ONAP instead should fix them (and maybe they already did a version newer than the one I tested with). What's your view? |
Beta Was this translation helpful? Give feedback.
-
@tliron , another one about ONAP.
ONAP decided to extend tosca with annotations with the bold :
I personally consider this a bad decission. Even if a parser works in "relaxed mode" and ignores whatever is not defined in the standard, if future versions of TOSCA want to use that name there will be a clash.
But, anyway, that's the situation we are facing now and as a result puccini chokes on CSARs generated from ONAP, with messages like:
I think that adding a ignore_annotation_types quirk is something that even I with my limited golang knowledge would be able to do. But before even trying I'd like to know if you would accept a PR. (and if so, tell me the exact quirk name that you would like to have)
TIA,
JPC
EDIT: Already Implemented via 6eca57e
Beta Was this translation helpful? Give feedback.
All reactions