Fixes #8422 - primary detection for non-discovered

We injected discovery way to chose primary interface to puppet fact
parser that is used also for not discovered host which are missing
discovery specific facts. Mac for such value was evaluated to nil
which matched also macaddress_lo so lo was chosen as primary
interface.
Fixes #8317 - Implement Reboot action