Skip to content

Commit 199bfd4

Browse files
committed
UI: list extensions only registered to the physical network
1 parent 9be3107 commit 199bfd4

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

ui/src/views/infra/network/ServiceProvidersTab.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,10 +1177,12 @@ export default {
11771177
// Load NetworkOrchestrator extensions registered to this physical network
11781178
getAPI('listExtensions', {
11791179
type: 'NetworkOrchestrator',
1180-
resourceid: this.resource.id,
1181-
resourcetype: 'PhysicalNetwork'
1180+
details: 'resource'
11821181
}).then(json => {
1183-
this.registeredExtensions = (json.listextensionsresponse && json.listextensionsresponse.extension) || []
1182+
const exts = (json?.listextensionsresponse?.extension) || []
1183+
this.registeredExtensions = exts.filter(ext =>
1184+
(ext.resources || []).some(r => r.type === 'PhysicalNetwork' && r.id === this.resource.id)
1185+
)
11841186
}).catch(() => {
11851187
this.registeredExtensions = []
11861188
})

0 commit comments

Comments
 (0)