[agent] Fix post prepare network changes [fixes #52275897]
Merge pull request #320 from cloudfoundry/network_change

[agent] Fix post prepare network changes [fixes #52275897]