Hello, I'm glad I helped you to proceed with your work 🙂
Regarding the error, maybe it's related to the specification of the input policer name that's not needed while deleting it (since only one input policer can be applied on a interface).
If you write the change element as follows, it should work fine:
<change> {
<interfaces>
{ <interface>
{ <name> ../../../name;
<unit> { <name> ../../name;
<family> { <inet>
{ <policer>
{ <input delete="delete">; }
}
}
}
}
}
}
I'm not sure this is useful, but you may also want to change the if condition, just to check that the input policer you are deleting is related to the missing output policer:
if ( (jcs:empty(./policer[output==$in_pol])) )
I hope this helps!
Mattia