If there is still a general need to migrate PANOS bi-dir-nat policy into two separate NAT policy, one for SRC one for DST, you can use PAN-OS-PHP: https://github.com/PaloAltoNetworks/pan-os-php This Framework is available also as Docker Container:
docker run --name panosphp --rm -v ${PWD}:/share -it swaschkut/pan-os-php:latest
the syntax to change bi-dir-nat into two NAT policy, where the migration is exactly the PAN-OS behaviour, to create the second hidden NAT rule as a configured one; please be aware, as the generated NAT rule, is exactly how PAN-OS FW behave, please adjust this NAT rule and configure specific SRC IP addresses in another config change step. offline config manipulation:
pan-os-php type=rule ruletype=nat 'actions=biDirNat-Split' in=input.xml out=output.xml location={{DeviceGroup/virtual-system}}
or usine PAN-OS XML API:
pan-os-php type=rule ruletype=nat 'actions=biDirNat-Split' in=api://{{MGMT-IP}} location={{DeviceGroup/virtual-system}}
This functionality to handle bi-dir-nat policy and split them , is available since March 22nd 2016, and was introduced by myself in the former tool called pan-configurator: https://github.com/swaschkut/pan-configurator/commit/22472b0d5f84604474e882e111130eb71372e8c9
... View more