본문 바로가기
Networking/Network Automation

NETCONF Protocol with YANG Data modeling

by 포항돼지 2025. 4. 2.

NETCONFT = XML 형식 사용한 Network Management Protocol

TCP/SSH 위에서 정의되는 응용 계층 프로토콜

 

NETCONFT의 구조

 
 

즉 Device Programmability 에 꼭필요한 Protocol + Data model 이라는 것

 
 
 

NETCONF/RESTCONF/gNMI == programmable interfaces

즉 이 프로토콜 통해서 cli처럼 인터페이스에 접속해서 config 하는 방식을 일컫는듯

SNMP, WebUI 랑 비슷한 기능, Data 전달하는 매개체, 인터페이스라고 보면 편할듯

 

YANG은 이에 사용되는 data modeling langauge 인거고

-> CLI에서는 사용되는게 MD-CLI라고 따로 있는듯(확실하진 않음, MD-CLI가 Yang data 모델링에도 사용된다고 함)

 
 
 

NETCONF : Install, Manipulate(조정하다) and delete the configuration of network device

 

Remote Procedure Call (RPC) layer using an XML encoding and provides a basic set of operations to edit and query configuration on a network device.

 

Capability Exchnage

ssh -p 830 user@destination -s netconf

 

Capability

각각 오퍼레이션 기능들 explain 하는거

 
 
 
 

Datastore -> a copy of the configuration of devices

"Candidate" -> Test 가능한 Sandbox storage 인듯

 

Cisco YANG Suite : Supports NETCONF/RESTCONF/gNMI

How it looks like before build the RPC

 

select the option and build -> built as XML as well as Yang data model

 

Apply -> running session is available

so periodically( every 10 sec ) we will get the device information what we requested