linked interfaces connectivity change detection daemon - dcasota/photonos-scripts GitHub Wiki
In Photon 3 linked interfaces within dynamic connectivity changes (dhcp address, down/up link) is a scenario where it is quite handy to run event post-scripts.
One solution is described here: https://github.com/vmware/network-config-manager
Install networkd-afterburn on Photon OS.
if [ `cat /etc/yum.repos.d/photon.repo | grep -o "packages.vmware.com/photon" | wc -l` -eq 0 ]; then
cd /etc/yum.repos.d/
sudo sed -i 's/dl.bintray.com\/vmware/packages.vmware.com\/photon\/$releasever/g' photon.repo photon-updates.repo photon-extras.repo photon-debuginfo.repo
fi
sudo tdnf install -y curl go gcc git make
cd /
sudo git clone https://github.com/vmware/network-config-manager.git
sudo chmod 755 /network-config-manager
cd network-config-manager/
sudo make build
sudo make install
sudo systemctl enable network-config-manager
sudo systemctl start network-config-manager