Alternate solution to make 'ip_for_network' function workable for puppet version 3.1

Signed-off-by: salmank <salmank@plumgrid.com>