Build your first schema
By the end of this tutorial you will have a working schema for network devices and interfaces, covering nodes, attributes, relationships, and generic abstractions. You'll load each version into a branch and verify the results.
This tutorial uses a network device example to demonstrate key schema concepts. Real-world schemas involve additional complexity, but the patterns here apply broadly.
For conceptual background on schemas and design patterns, see About schema.
Prerequisites​
- Infrahub running locally or in your environment
infrahubctlcommand-line tool installed- Basic understanding of YAML syntax
Schema validation
Enable schema validation in your editor to catch errors while developing schema files.
Alternative learning resources​
Hands-on lab​
Try the interactive Infrahub Schema Introduction lab for hands-on practice with schemas.
Video tutorials​
Learn advanced schema concepts in this livestream recording: