import collections


def get_interface_config_ipv4(ip_address, ip_subnet, ip_gateway):
    """
    Return the interface configuration parameters for all IPv4 static
    addressing.
    """
    parameters = collections.OrderedDict()
    parameters['IPADDR'] = ip_address
    parameters['NETMASK'] = ip_subnet.netmask
    parameters['BROADCAST'] = ip_subnet.broadcast
    if ip_gateway:
        parameters['GATEWAY'] = ip_gateway
    return parameters