protect
使用
<rpc>
<load-configuration>
<configuration>
<!-- opening tag for each parent of the element -->
<element protect="protect">
<name>identifier</name> <!-- if element has identifier -->
</element>
<!-- closing tag for each parent of the element -->
</configuration>
</load-configuration>
</rpc>
描述
防止配置元素被修改或删除。该 protect 属性可以应用于配置层次结构或单个配置语句。属性 protect 可以与 active and inactive 属性组合。要取消保护受保护元素,请改为添加 unprotect 属性。
版本信息
在 Junos OS 11.2 版中引入的属性。