Comment 2 for bug 1484973

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/235865
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=83bd490394e1ca12e6729917ce13d39b2a83f995
Submitter: Jenkins
Branch: master

commit 83bd490394e1ca12e6729917ce13d39b2a83f995
Author: smurashov <email address hidden>
Date: Fri Oct 16 14:23:21 2015 +0300

    Use appropriate types to store IP and MAC addrs

    In PostgreSQL there are special types for storing IPv4, IPv6 address and
    subnetworks and also MAC addresses. Storing data in these types is more
    efficient than in strings because it requires less space. In addition,
    it provides additional operations for columns of these types.

    This patch changes types of some columns for models such as:

        IPAddr
            ip_addr: inet

        IPAddrRange
            first: inet
            last: inet

        Node
            mac: macaddr
            ip: inet

        NodeNICInterface
            mac: macaddr
            ip_addr: inet
            netmask: inet

        NodeNICInterface
            mac: macaddr

        NetworkGroup
            cidr: cidr
            gateway: inet

        NeutronConfig
            base_mac: macaddr
            internal_cidr: cidr
            internal_gateway: inet
            baremetal_gateway: inet

        NovaNetworkConfig
            fixed_networks_cidr: cidr

    Co-Authored-By: Ilya Kharin <email address hidden>
    Change-Id: Id8431eb7d2e3ca1a1cc29fc865d57359b29d0e35
    Partial-Bug: #1484973