P4 environment setup