[Release] Cloud-Native Network Function YAML Editor

18/03/2021

Verify & Edit CNF YAML Configurations

CDNF.io YAML Editor, is an open-source, YAML configuration editor & verification tool. It is part of the CNF portfolio – as an added bonus, you can verify your cloud-native network function configuration with our tool!

CDNF.io YAML Editor Logo

The editor is available on the official website!

Features

  • YAML & JSON Schema Validation
  • Generating YAML Examples
  • Importing & Export of Configurations

YAML Configuration Validation

Import, or copy & paste a YAML configuration via the three-dot menu in the Configuration tab. We have conveniently placed an Examples folder, with a JSON Schema that serves as the

Errors will then be highlighted, against the imported JSON schema.

How-To: Validate your YAML file

  1. Visit the CDNF.io YAML Editor website
  2. Import/paste a valid draft-04 JSON Schema, or use the existing example, via the folder icon, in the JSON Schema tab, on the right.
    {
      "type": "object",
      "properties": {
        "user": {
          "type": "object",
          "properties": {
            "id": {
              "$ref": "#/definitions/positiveInt"
            },
            "name": {
              "type": "string"
            },
            "birthday": {
              "type": "string",
              "chance": {
                "birthday": {
                  "string": true
                }
              }
            },
            "email": {
              "type": "string",
              "format": "email"
            }
          },
          "required": [
            "id",
            "name",
            "birthday",
            "email"
          ]
        }
      },
      "required": [
        "user"
      ],
      "definitions": {
        "positiveInt": {
          "type": "integer",
          "minimum": 0,
          "minimumExclusive": true
        }
      }
    }
  3. Have a look at the generated Example YAML code in the YAML Example tab.

Invalid YAML File

user:
  id: -33524623
  name: "Jon Snow"
  birthday: "19/12/283"
  email: "jonsnow@gmail.com"

Valid YAML File

user:
  id: 33524623
  name: "John Snow"
  birthday: "19/12/283"
  email: "jonsnow@gmail.com"

Limitations

The JSON Schema specification recommends to use the definitions key, where all definitions should be located. Then, you should use a relative path to point to the definitions.

Our implementation of the JSON schema requires a definitions object, if the ref ID links to a definition and does not use a relative path.

Feedback for CNF Tools

Leave us your feedback here or create an Issue in the repository of the CDNF.io YAML Editor. Explore our portfolio of cloud-native network functions, developed by PANTHEON.tech.

Make sure to visit our playlist on YouTube!

Related Articles

[What Is] Network Orchestration

In the era of demanding AI deployments, edge computing, and complex enterprise networks, manual network management is obsolete and borderline dangerous in serious deployments. This article explores the concept of network orchestration, its importance in the B2B...

read more

SandWork is Compliant with Micas Devices

We are happy to announce that SandWork and these Micas network devices have successfully passed an interoperability test. In other words, SandWork shows strong interoperability with Micas SONiC. In our world of networking, we often talk about interoperability like...

read more

[Release] lighty.io 23

lighty.io 23 is here! This release continues to emphasize our commitment to providing a lightweight, high-performance alternative to the standard OpenDaylight distribution, while keeping pace with the latest upstream developments. lighty.io 23 is a comprehensive...

read more