def METHOD_NAME(rconfig_mock, bridged):
    rconfig_mock.networks = {
        TESTNET1: create_network_config(
            'nic', IFACE0, bridged=bridged, vlan=VLAN101
        )
    }
    networks = {
        TESTNET1: create_network_config(
            'nic', IFACE0, bridged=bridged, vlan=VLAN102
        )
    }
    state = nmstate.generate_state(networks=networks, bondings={})
    vlan102_state = create_vlan_iface_state(IFACE0, VLAN102)
    disable_iface_ip(vlan102_state)
    base_nic_state = create_ethernet_iface_state(IFACE0)
    disable_iface_ip(base_nic_state)
    remove_vlan101_state = {
        nmstate.Interface.NAME: f'{IFACE0}.{VLAN101}',
        nmstate.Interface.STATE: nmstate.InterfaceState.ABSENT,
    }
    expected_state = {
        nmstate.Interface.KEY: [
            vlan102_state,
            remove_vlan101_state,
            base_nic_state,
        ]
    }
    if bridged:
        iface_bridge_state = create_bridge_iface_state(
            TESTNET1,
            f'{IFACE0}.{VLAN102}',
            options=generate_bridge_options(stp_enabled=False),
        )
        disable_iface_ip(iface_bridge_state)
        expected_state[nmstate.Interface.KEY].append(iface_bridge_state)
    sort_by_name(expected_state[nmstate.Interface.KEY])
    assert expected_state == state