Exclude gateway_ip of subnet in get_unused_ip_addresses

When running test_create_list_show_delete_interfaces, if subnet
used by the testcase has gateway_ip set, a BadRequest exception
will occur with error message something like "Fixed IP 172.168.200.1
is already in use."
This is to exclude gateway_ip of subnet in get_unused_ip_addresses
besides pruning out addresses already allocated to existing ports.

Change-Id: I036d2940ff39450ca30d19be1cd9ae581ffb1b4f
Closes-Bug: 1616714
1 file changed