from typing import OrderedDict


def transform_gateway(result):
    """Transform a gateway list to table output. """
    return OrderedDict([('Name', result.get('name')),
                        ('ResourceGroup', result.get('resourceGroup')),
                        ('Location', result.get('location')),
                        ('ProvisioningState', result.get('provisioningState')),
                        ('Status', result.get('status')),
                        ('PublicIP', result.get('ipAddress'))])