Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

yang-compliant (NETCONF)

구문

계층 수준

설명

NETCONF 서버가 장비의 YANG 스키마 및 RFC 6020, YANG - NETCONF(Network Configuration Protocol)를 위한 데이터 모델링 언어와 일치하는 YANG 호환 구성 데이터를 반환하도록 요구합니다.

참고:

ODL(OpenDaylight) 컨트롤러가 Junos OS를 실행하는 디바이스를 관리할 수 있도록 명령문을 구성 yang-compliant 해야 합니다.

명령문을 yang-compliant 구성할 때, <get-config> RPC(And <get-configuration format="xml"> Remote Procedure Call)에는 출력에 대한 다음과 같은 변경 사항이 포함됩니다.

  • 해당 디바이스(<undocumented> 요소)에 대한 YANG 스키마에 정의되지 않은 지원되지 않는 구성 명령문을 억제합니다. 이는 사용되지 않는 명령문을 표시하지 않습니다.

  • 구성 설명(<junos:comment> 요소)을 억제합니다.

  • YANG 스키마에 따라 목록 키를 직렬화하여 키를 정의 choice-ident 하고 choice-value 키로 지정하는 구성 명령문을 작성합니다.

  • RFC 7952에 따라 인코딩된 YANG 주석을 방출합니다.

표 1 은 RPC 출력의 <get-config> <get-configuration format="xml"> 변화를 설명하고 있습니다.

표 1: Yang 호환 구성 출력에 대한 변경
기본 출력 변경 yang 호환 출력

억제
지원 되지 않는
문을

<processes>
  <ntp>
    <undocumented>
      <enable/>
    </undocumented>
  </ntp>
</processes>
<processes>
  <ntp>
  </ntp>
</processes>

억제
코멘트

<junos:comment>/* CustA */
</junos:comment>
<route>
  <name>198.51.100.1/24
  </name>
  <next-hop>10.1.1.254
  </next-hop>
  <retain/>
  <no-readvertise/>
</route>

<route>
  <name>198.51.100.1/24
  </name>
  <next-hop>10.1.1.254
  </next-hop>
  <retain/>
  <no-readvertise/>
</route>

정확한 직렬화
목록 키
다음과 같은
<choice-ident>

<choice-value>

<route-filter>
  <address>0.0.0.0/0
  </address>
  <prefix-length-range>/32-/32
  </prefix-length-range>
</route-filter>
<route-filter>
  <address>0.0.0.0/0
  </address>
  <choice-ident>prefix-length-range
  </choice-ident>
  <choice-value>/32-/32
  </choice-value>
</route-filter>

필수 권한 수준

system—구성에서 이 명령문을 확인합니다.

시스템 제어—이 명령문을 구성에 추가합니다.

릴리스 정보

Junos OS 릴리스 17.3에 소개된 성명서.