patch for salt with some useful functions to manage network templates