Closed jpc4242 closed 1 year ago
Yes, it should not be hard to do. Just out of curiosity, this does work OK if you use tosca_definitions_version: tosca_simple_yaml_1_2
?
If you use 1_2 then it complains about the "complementary"set (i.e the format that includes "operations")
$ puccini-tosca parse s1_3_using_tosca_1_2.yaml
PROBLEMS (4)
file:/home/juan/myenvs/TOSCA/PT6_328/tests/s1_3_using_tosca_1_2.yaml
@13,7 interface_types["myinterfacetype2"].operations.instantiate: unsupported keyname
@25,11 node_types["mytype"].interfaces["myinterface0a"].operations.instantiate: unsupported keyname
@40,11 node_types["mytype"].interfaces["myinterface1a"].operations.instantiate: unsupported keyname
@55,11 node_types["mytype"].interfaces["myinterface2a"].operations.instantiate: unsupported keyname
$ puccini-tosca parse s1_3_using_tosca_1_3.yaml
PROBLEMS (4)
file:/home/juan/myenvs/TOSCA/PT6_328/tests/s1_3_using_tosca_1_3.yaml
@5,5 interface_types["myinterfacetype1"].instantiate: unsupported keyname
@32,9 node_types["mytype"].interfaces["myinterface0b"].instantiate: unsupported keyname
@47,9 node_types["mytype"].interfaces["myinterface1b"].instantiate: unsupported keyname
@62,9 node_types["mytype"].interfaces["myinterface2b"].instantiate: unsupported keyname
juan@BACVU2KFN0:~/myenvs/TOSCA/PT6_328/tests$
I've introduced a new quirk to address this: interfaces.operations.permissive
. Note that it must support both syntax styles, because the internal TOSCA 1.3 profile is written in the new style. What this means is that the operations
and notifications
keynames are parsed as usual, however with this quirk any other keynames are parsed as extra operations.
I would I appreciate if you could built from HEAD locally and test to see if this addresses your request!
@jpc4242 Would you be able to test this to see if it works for you?
Yes, @tliron , I checked it and it works flawlessly. Thank you very much (and my apologies for not having seen your previous message)
Hi, this comes from a discussion with a ETSI SOL001 vendor.
TOSCA 1.3 uses
operations
andnotifications
; but it also says thatVendor is using TOSCA 1.3 and interfaces without including
operations
(i.e: the "deprecated" syntax. Puccini is complaining about it. I don't have their permission to publish here the original descriptor so I created a simplified example (at the end of this message).Puccini complains about every bit where I don't use
operations
. If I understood it correctly, the "deprecated syntax" would allow at least some of them.Would it be possible for puccini to support the deprecated syntax? Either by default or with some quirk (e.g
-x allow_deprecated_interface_syntax
). In the last case, including it also as part of-x etsinfv
combination quirkTIA, Juan