NETCONF를 사용하여 동시에 여러 구성 요소 요청
Junos OS를 실행하는 장치가 있는 NETCONF 세션에서 클라이언트 애플리케이션은 태그 요소 내에서 <get-config>
동일한 유형의 여러 구성 요소 또는 다른 유형의 구성 요소를 요청할 수 있습니다. 이 요청에는 하나의 <filter>
요소와 <configuration>
태그 요소만 포함됩니다(각 요소 중 하나 이상이 있는 경우 NETCONF 서버가 오류를 반환함).
요청된 2개의 객체가 동일한 상위 계층 수준인 경우 클라이언트는 두 요청을 하나의 상위 태그 요소 내에 모두 포함시키거나 각 요청에 대해 상위 태그 요소를 반복할 수 있습니다. 예를 들어 [edit system]
계층 수준에서 클라이언트는 다음과 같은 두 가지 방법으로 RADIUS 서버에 대해 구성된 서비스 목록과 식별자 태그 요소를 요청할 수 있습니다.
<!-- both requests in one <system> tag element --> <rpc> <get-config> <source> <!-- tag specifying the source configuration --> </source> <filter type="subtree"> <configuration> <system> <services/> <radius-server> <name/> </radius-server> </system> </configuration> </filter> </get-config> </rpc> ]]>]]> <!-- separate <system> tag element for each element --> <rpc> <get-config> <source> <!-- tag specifying the source configuration --> </source> <filter type="subtree"> <configuration> <system> <services/> </system> <system> <radius-server> <name/> </radius-server> </system> </configuration> </filter> </get-config> </rpc> ]]>]]>
클라이언트는 다음과 같은 유형의 정보에 대한 요청을 결합할 수 있습니다.