Algorithm to automatically solve security policy conflicts among IP devices configurations