Verify list_addresses_by_network APIs attributes

This patch adds the JSON schema for Nova V2 & V3 server
list_addresses_by_network APIs response and validate the
response with added JSON schema to block the backward
incompatibility change in the future.

The response body of server list_addresses_by_network V2 API is below:

{
    "private": [
        {
            "version": 4,
            "addr": "192.168.0.3"
        }
    ]
}

The response body of server list_addresses_by_network V3 API is below:

{
    "private": [
        {
            "version": 4,
            "addr": "192.168.0.3",
            "type": "fixed",
            "mac_addr": "aa:bb:cc:dd:ee:ff"
        }
    ]
}

Partially implements blueprint nova-api-attribute-test

Change-Id: I76e25523708fb9454518f215dc60f201d7483464
4 files changed