Update subnet.php

The following variables should be cast as integers first. With the proposed changes, the subnet is created. 

$this->allowRequests
$this->showName
$this->pingSubnet