> Thanks for the script,it is very usefull.Is it possible to prevent delete interfaces lo0 with this scripts?
I changed mine in this way:
call error-if-missing($must = interfaces/*/description, $statement = "You are not allowed to delete all interfaces!!!");
to do the same for Lo0.0 (I believe, please test/confirm):
call error-if-missing($must = interfaces/[name == "Lo0"], $statement = "You are not allowed to delete the Loopback interface!!!");