[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] VLAN & VXLAN

Let’s start with an analogy - a busy airport. Thousands of passengers, dozens of terminals, countless gates. Now imagine trying to direct all that traffic - keeping passengers moving smoothly, without ending up at the wrong destination.  That’s what modern networks...

read more

[What Is] Whitebox Networking?

A deep dive into open-source & SONiC Solutions One of the many challenges in modern networking is the big decision, between vendor-locked and open-source solutions.  While entry prices for vendor-locked solutions seem viable, they can become unbearable in the long...

read more

[What Is] BGP EVPN?

As is always the case, businesses and service providers rely on and require networks that need to be fast, scalable, and resilient. However, as networks grow, they all kinds of challenges—from managing multi-location connectivity to ensuring efficient data flow and...

read more