Skip to the content.

YANG validator

Introduction

YANG validator is a web-based YANG data model validator. It is part of the YANG catalog website.

The home page of the YANG validator looks like this:

YANG validator - home page

Validate a correct YANG data model

To validate the interfaces.yang data model, click the button in the “I have one or multiple YANG files and I want to validate them” section, select file interfaces.yang and then click the button.

The validation results page reports the following results:

YANG validator - good validation results

Validate an incorrect YANG data model

The following screenshot shows an example of validating an incorrect YANG data model, namely bad-interfaces.yang.

YANG validator - bad validation results

Validate an IETF internet draft (ID) or request for comment (RFC)

YANG validator can also validate an IETF internet draft (ID) or request for comment (RFC) that contains YANG data models (as described in section 3.2 of RFC 8407).

For example, enter 8348 in the field in the “I know the number of IETF RFC and I want to validate it” section, then click the button, and accept the default values in the “Additional Information Required” window

References