Since we would like to do some actions in case network restart is required, we should isolate restart action from both dns and interface actions.