The current P4 programmability model assumesthat a P4 programmable device is owned and controlled bya single tenant. However, in typical NFV scenarios, supportfor multiple tenants is desirable. When each tenant may wantto deploy their own P4 pipeline offering different networkfunctions (NF), supporting multiple co-existing tenant pipelineson a single platform is difficult because it requires pipelinemerging, control plane support, and resource management ofthe platform. In this paper, we present P4-MTAGG, a novelframework for flexibly deploying multiple P4 programmableNFs on a programmable match-action pipeline while supportingmultiple tenants. P4-MTAGG consists of i) novel compiler-addons for automatic merging multiple P4-pipelines, ii) p4runtimeproxy to allow for control plane access of the aggregated pipelinestogether with policy based resource management for the P4target, and iii) orchestrator to automate the provisioning of aP4-based target utilizing aggregation either in a simulated orreal hardware environment. We use a testbed equipped withNetronome SmartNIC to evaluate the throughput and latency ofaggregated pipelines varying the complexity of individual ones.By comparing the performance of the aggregated pipelines withthe non-aggregated ones, we show that the synthesized codecreates overhead due to the usage of SRv6 and per tenantmetering for resource management.