【发布时间】:2015-03-31 07:12:19
【问题描述】:
checkIntfIntVlanMemberConfigRule = """
(defrule checkSubIntfIntVlanMemberConfigRule
(checkIntf (intf ?intf) )
(SwitchIntfConfig (intf ?intf) (switchportMode "routed") (nativeVlan ?intVlan))
(or (not (VlanStatus (vlan ?intVlan) (intf ?intf)) )
?f <- (VlanStatus (vlan ?intVlan) (intf ?intf)) )
=>
(if (isbound ?f) then (printout t "PASS: vlanStatus exists for " ?intf " " ?intVlan crlf) (return 0) )
(printout t "vlanStatus does not exist for " ?intf " " ?intVlan crlf)
)"""
在上述剪辑规则中, (isbound ?f) 的等效剪辑内置函数是什么?一般来说,如果变量绑定在 LHS 中,是否有任何内置函数可以在 RHS 中检查?
【问题讨论】:
标签: clips