Automation and APIs
NETCONF and YANG
A device's config as data: YANG models say what it may hold, and NETCONF reads and changes it as XML over SSH.
NETCONF reads and changes a device's config as XML over SSH, on port 830. YANG is its schema language: a
model such as ietf-interfaces says which settings exist and which values each may take. <get-config> reads a
datastore (running, or a candidate draft), <edit-config> changes one and is refused whole if a value breaks
the model, <commit> makes the candidate live. RESTCONF serves the same data over HTTP.
Read next
- Running and startup config What a device does now against what it loads when it starts: unsaved changes vanish at the next reload.
- REST API An HTTP interface where every thing is a URL and the methods are the verbs: GET reads, POST creates, PUT and PATCH change, DELETE removes.
- Configuration management Writing the wanted configuration down as files and letting a tool make every device match it.
- SSH Encrypted remote login and commands, on TCP port 22, with passwords or keys.