diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/021-interface-roles b/package/gluon-core/luasrc/lib/gluon/upgrade/021-interface-roles
index 182c8903464c94ba2eb920df2587c43d97ef90ce..4842229a46bca12191cff994917d1070cea44f4a 100755
--- a/package/gluon-core/luasrc/lib/gluon/upgrade/021-interface-roles
+++ b/package/gluon-core/luasrc/lib/gluon/upgrade/021-interface-roles
@@ -7,10 +7,10 @@ local util = require 'gluon.util'
 
 -- Defaults from site.conf
 local roles = {
-	lan = site.interfaces.lan.roles({'client'}),
-	wan = site.interfaces.wan.roles({'uplink'}),
+	lan = site.interfaces.lan.default_roles({'client'}),
+	wan = site.interfaces.wan.default_roles({'uplink'}),
 }
-roles.single = site.interfaces.single.roles(roles.wan)
+roles.single = site.interfaces.single.default_roles(roles.wan)
 
 -- Migration of Mesh-on-WAN/LAN setting from Gluon 2021.1 and older (to be removed in 2024)
 --