fixes #14239 - when creating host from API, set first interface as primary if none set
(cherry picked from commit 38d9333f8e82e45fc6771ea7740e6ea625b97d3f)
fixes #14239 - when creating host from API, set first interface as primary if none set
(cherry picked from commit 38d9333f8e82e45fc6771ea7740e6ea625b97d3f)