replace-pattern
사용
<rpc> <load-configuration> <!-- replace a pattern globally --> <configuration replace-pattern="pattern1" with="pattern2" [upto="n"]> </configuration> <!-- replace a pattern at a specific hierarchy level --> <configuration> <!-- opening tag for each parent element --> <level-or-object replace-pattern="pattern1" with="pattern2" [upto="n"]/> <!-- closing tag for each parent element --> </configuration> <!-- replace a pattern for an object that has an identifier --> <configuration> <!-- opening tag for each parent element --> <container-tag replace-pattern="pattern1" with="pattern2" [upto="n"]> <name>identifier</name> </container-tag> <!-- closing tag for each parent element --> </configuration> </load-configuration> </rpc>
설명
후보 구성 또는 개방형 구성 데이터베이스에서 변수 또는 식별자를 대체합니다. Junos OS는 속성이 지정한 replace-pattern
패턴을 속성이 정의 with
한 교체 패턴으로 대체합니다. 선택적 upto
특성은 대체되는 개체 수를 제한합니다. 교체 범위는 구성 데이터에서 속성의 배치에 따라 결정됩니다.
특성
replace-pattern="pattern1" |
일치시킬 식별자 또는 값을 정의하는 텍스트 문자열 또는 정규식입니다. |
with="pattern2" |
로 된 pattern1식별자와 값을 대체하는 텍스트 문자열 또는 정규식입니다. |
upto="n" |
대체된 개체 수입니다. 값은 n 구성에서 대체되는 총 개체 수(패턴이 발생한 총 횟수가 아님)를 제어합니다. 동일한 계층 수준의 개체(형제)가 먼저 대체됩니다. 주어진 개체 내에서 패턴이 여러 번 발생하면 단일 교체로 간주됩니다. 속성을 포함하지
|
릴리스 정보
Junos OS 릴리스 15.1R1에 소개된 속성.