Check valid fence mode in add_network_by_name method in VApp OM

Change-Id: I2e611d85793698a3b17126526491d63336ad8348