def b2b_ipv4_devices(b2b_raw_config, tx_port, rx_port):
    """Returns a list of ipv4 tx device and rx device objects
    Each device object is ipv4, ethernet and vlan
    """
    tx_device, rx_device = b2b_raw_config.devices.device().device()
    tx_device.name, rx_device.name = "Tx Devices Ipv4", "Rx Devices Ipv4"
    tx_device.container_name, rx_device.container_name = (
        tx_port.name,
        rx_port.name,
    )
    tx_device.device_count, rx_device.device_count = 1, 1
    tx_eth, rx_eth = tx_device.ethernet, rx_device.ethernet
    tx_eth.name, rx_eth.name = "Tx eth", "Rx eth"
    tx_ip, rx_ip = tx_eth.ipv4, rx_eth.ipv4
    tx_ip.name, rx_ip.name = "Tx Ip", "Rx Ip"
    tx_ip.address.value, rx_ip.address.value = "1.1.1.1", "1.1.2.1"
    tx_ip.gateway.value, rx_ip.gateway.value = "1.1.2.1", "1.1.1.1"
    tx_ip.prefix.value, rx_ip.gateway.value = 24, 24

    return [tx_device, rx_device]