jcs:emit-comment Template
XSLT 구문
<junos:comment> <xsl:text>...</xsl:text> </junos:comment>
설명
커밋, 이벤트 또는 op 스크립트 내에서 구성에 코멘트를 생성합니다. 템플릿에 요소가 포함되어 있습니다<junos:comment>
. 템플릿을 직접 호출 jcs:emit-comment
하지 않습니다. 대신, 해당 <junos:comment>
요소와 자식 요소를 <xsl:text>
템플릿, <change>
요소 또는 <transient-change>
요소에 대한 jcs:emit-change
호출 내에 포함합니다.
사용 예
다음 예제는 커밋 스크립트에서 이 템플릿을 호출하는 방법을 보여줍니다.
<xsl:call-template name="jcs:emit-change"> <xsl:with-param name="content"> <term> <name>very-last</name> <junos:comment> <xsl:text>This term was added by a commit script</xsl:text> </junos:comment> <then> <accept/> </then> </term> </xsl:with-param> </xsl:call-template>
구성 모드 명령을 실행하면 show firewall
다음과 같은 출력이 나타납니다.
[edit] user@host# show firewall family inet { term very-last { /* This term was added by a commit script */ then accept; } }