cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
451
Views
0
Helpful
1
Replies

When statement is not working

trashmi
Cisco Employee
Cisco Employee

Hi ,i have added this when statement but this statment is not making any sense,if any body has idea please help me??
to configure vrf , voice services should be in shutdown
leaf vrf {
description
“Voice VRF”;
when "/ios:native/voice/service[type=‘voip’]/shutdown"
tailf:cli-full-command;
tailf:cli-diff-create-after “/ios:native/ios:ip/ios:vrf”;
tailf:cli-diff-delete-before “/ios:native/ios:ip/ios:vrf”;
tailf:cli-diff-create-after “/ios:native/ios:vrf/ios:definition”;
tailf:cli-diff-delete-before “/ios:native/ios:vrf/ios:definition”;
must “/ios:native/ios:vrf/ios:definition[ios:name=current()] or /ios:native/ios:ip/ios:vrf[ios:name=current()]” {
error-message “VRF must be created 1st, deleted last”;
}

below are confd results the when condition is not getting invoke

voice service voip
no shutdown
no cpa
no supplementary-service sip handle-replaces
no supplementary-service sip moved-temporarily
no supplementary-service sip refer
sip
!
!
bgl-ads-3590# config t
Entering configuration mode terminal
bgl-ads-3590(config)# voice ?
Possible completions:
cause-code class error-passthru header-passing iec register service translation-profile translation-rule uc vrf
bgl-ads-3590(config)# voice vrf ?
Possible completions:
<string, min: 1 chars, max: 32 chars>[vrf12]
bgl-ads-3590(config)# voice vrf vrf10
bgl-ads-3590(config)# commit
Commit complete.

1 Reply 1

cohult
Cisco Employee
Cisco Employee

Since you posted the same question to the ConfD User Community Forum, I posted a reply there: https://discuss.tail-f.com/t/when-statement-is-not-working/3907/2?u=cohult