OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

tosca message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [tosca] Using in_range on a range


Yes, my parser checks to see if the property value of type ârangeâ is contained inside the range specified by the constraints (i.e. is a subset of â). Philippeâs example passes my validator, and when I change the range property value to no longer be within the range specified by the constraint, my validator returns an error. For example, here is the output when I change the lower bound of the range values from 1,000 to -1,000:

 

{

  "range_in_range.yaml": {

    "range_in_range.yaml": {

      "topology": {

        "node_templates": {

          "node1": {

            "properties": {

              "port_range": {

                "in_range": "<[0, 65535]> not satisfied by <[-1000, 5000]>"

              }

            },

            "line": 20

          }

        },

        "policies": {

          "policy1": {

            "properties": {

              "port_range": {

                "in_range": "<[0, 65535]> not satisfied by <[-1000, 5000]>"

              }

            },

            "line": 25

          }

        },

        "line": 18

      }

    }

  }

}

 

From: tosca@lists.oasis-open.org <tosca@lists.oasis-open.org> On Behalf Of Tal Liron
Sent: Friday, December 10, 2021 1:12 PM
To: tosca@lists.oasis-open.org
Subject: [tosca] Using in_range on a range

 

Does your TOSCA parser do the right thing? I found out that it was more complex than I expected... you can see the discussion here:

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]