Bug 1348993: If neither subnet nor port is specified correctly, reject the request

Change-Id: Ie3cb09dd96e3949f7159cf37ee2131d05b0ab4c6
Merge "Bug 1348993: If neither subnet nor port is specified correctly, reject the request"