Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-1462

CBA Source Default Value Not Applied

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Frankfurt Release
    • None
    • None

      Ran the config-assign workflow step from the golden blueprint tutorial (/onap/ccsdk/cds/components/model-catalog/blueprint-model/test-blueprint/golden). The CBA was updated so that the default value of prefix-id is 1 instead of 6 in vfw-interface-mapping.json as follows:

      {
          "name": "prefix-id",
          "input-param": true,
          "property": {
            "type": "integer",
            "default": 1
          },
          "dictionary-name": "prefix-id",
          "dictionary-source": "default",
          "dependencies": [
            
          ]
        }

      In dt-config-assign-properties in data_types.json:

        "prefix-id" : {
                "type" : "integer",
                "default" : 6
              },

      This is part of request payload:

      "payload": {
          "config-assign-request": {
            "resolution-key": "test-3",
            "config-assign-properties": {
              "hostname": "blah",
              "interface-name": "ge-0/0/7",
              "unit-number": "0"
            }
          }
        }

      When executing the worklow, prefix-id gets resolved to 6 instead of 1; the 6 coming from dt-config-assign-properties in data_types.json

      If config-assign-properties is removed from my payload as follows:

      "payload": {
          "config-assign-request": {
            "resolution-key": "test-3"
          }
        }

      prefix-id gets resolved to 1

      Problem:

      This behaviour may be a bug or expected.

       

            Unassigned Unassigned
            nirvan.ramjuttun nirvan.ramjuttun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: