Fix get_interface
See merge request !4010 (merged)
(cherry picked from commit 181308d4)
a748b5bb Fix get_interface