diff --git a/@xen-orchestra/lite/src/locales/cs.json b/@xen-orchestra/lite/src/locales/cs.json index 09884d7f1ea..63da1681446 100644 --- a/@xen-orchestra/lite/src/locales/cs.json +++ b/@xen-orchestra/lite/src/locales/cs.json @@ -59,7 +59,6 @@ "descending": "sestupně", "description": "Popis", - "dhcp": "DHCP", "disabled": "Zakázáno", "display": "Zobrazení", "dns": "DNS", diff --git a/@xen-orchestra/lite/src/locales/de.json b/@xen-orchestra/lite/src/locales/de.json index 2a1d941bbc4..c080172e969 100644 --- a/@xen-orchestra/lite/src/locales/de.json +++ b/@xen-orchestra/lite/src/locales/de.json @@ -57,7 +57,6 @@ "descending": "absteigend", "description": "Beschreibung", - "dhcp": "DHCP", "disabled": "deaktiviert", "display": "Display", "dns": "DNS", @@ -120,7 +119,6 @@ "n-hosts-awaiting-patch": "Der Host {n} benötigt dieses Patch | Die Hosts {n} benötigen dieses Patch", "n-missing": "{n} verbleibend", "name": "Name", - "netmask": "Netzmaske", "network-download": "Download", "network-throughput": "Netzwerkdurchsatz", "network-upload": "Upload", diff --git a/@xen-orchestra/lite/src/locales/en.json b/@xen-orchestra/lite/src/locales/en.json index 8353acc18d8..4aa531d34c4 100644 --- a/@xen-orchestra/lite/src/locales/en.json +++ b/@xen-orchestra/lite/src/locales/en.json @@ -43,7 +43,6 @@ "cpu-provisioning": "CPU provisioning", "cpu-provisioning-warning": "The number of vCPUs allocated exceeds the number of physical CPUs available. System performance could be affected", "cpu-usage": "CPU usage", - "delete": "Delete", "delete-vms": "Delete 1 VM | Delete {n} VMs", "deploy": "Deploy", "deploy-xoa": "Deploy XOA", @@ -59,10 +58,8 @@ "descending": "descending", "description": "Description", - "dhcp": "DHCP", "disabled": "Disabled", "display": "Display", - "dns": "DNS", "do-you-have-needs": "You have needs and/or expectations? Let us know", "documentation": "Documentation", "edit-config": "Edit config", @@ -97,7 +94,6 @@ "force-reboot": "Force reboot", "force-shutdown": "Force shutdown", "fullscreen-leave": "Leave fullscreen", - "gateway": "Gateway", "n-gb-left": "{n} GB left", "n-gb-required": "{n} GB required", "go-back": "Go back", @@ -122,7 +118,6 @@ "n-hosts-awaiting-patch": "{n} host is awaiting this patch | {n} hosts are awaiting this patch", "n-missing": "{n} missing", "name": "Name", - "netmask": "Netmask", "network-download": "Download", "network-throughput": "Network throughput", "network-upload": "Upload", @@ -184,7 +179,6 @@ "start": "Start", "start-on-host": "Start on specific host", "static-ip": "Static IP", - "status": "Status", "storage-usage": "Storage usage", "support": "Support", "suspend": "Suspend", diff --git a/@xen-orchestra/lite/src/locales/fa.json b/@xen-orchestra/lite/src/locales/fa.json index e9189bff927..124bd4f2c48 100644 --- a/@xen-orchestra/lite/src/locales/fa.json +++ b/@xen-orchestra/lite/src/locales/fa.json @@ -58,7 +58,6 @@ "descending": "نزولی", "description": "توصیف", - "dhcp": "DHCP", "disabled": "غیر فعال", "display": "نمایش", "dns": "DNS", diff --git a/@xen-orchestra/lite/src/locales/fr.json b/@xen-orchestra/lite/src/locales/fr.json index d2c010771e6..026f181d81a 100644 --- a/@xen-orchestra/lite/src/locales/fr.json +++ b/@xen-orchestra/lite/src/locales/fr.json @@ -43,7 +43,6 @@ "cpu-provisioning": "Provisionnement CPU", "cpu-provisioning-warning": "Le nombre de vCPU alloués dépasse le nombre de CPU physique disponible. Les performances du système pourraient être affectées", "cpu-usage": "Utilisation CPU", - "delete": "Supprimer", "delete-vms": "Supprimer 1 VM | Supprimer {n} VMs", "deploy": "Déployer", "deploy-xoa": "Déployer XOA", @@ -59,8 +58,6 @@ "descending": "descendant", "description": "Description", - "dhcp": "DHCP", - "dns": "DNS", "disabled": "Désactivé", "display": "Affichage", "do-you-have-needs": "Vous avez des besoins et/ou des attentes ? Faites le nous savoir", @@ -97,7 +94,6 @@ "force-reboot": "Forcer le redémarrage", "force-shutdown": "Forcer l'arrêt", "fullscreen-leave": "Quitter plein écran", - "gateway": "Passerelle", "n-gb-left": "{n} Go libres", "n-gb-required": "{n} Go requis", "go-back": "Revenir en arrière", @@ -122,7 +118,6 @@ "n-hosts-awaiting-patch": "{n} hôte attend ce patch | {n} hôtes attendent ce patch", "n-missing": "{n} manquant | {n} manquants", "name": "Nom", - "netmask": "Masque réseau", "network-download": "Descendant", "network-throughput": "Débit du réseau", "network-upload": "Montant", @@ -184,7 +179,6 @@ "start": "Démarrer", "start-on-host": "Démarrer sur un hôte spécifique", "static-ip": "IP statique", - "status": "Statut", "storage-usage": "Utilisation du stockage", "support": "Support", "suspend": "Suspendre", diff --git a/@xen-orchestra/web-core/lib/components/card/VtsCardRowKeyValue.vue b/@xen-orchestra/web-core/lib/components/card/VtsCardRowKeyValue.vue index 513e358fd97..f9dd28f7281 100644 --- a/@xen-orchestra/web-core/lib/components/card/VtsCardRowKeyValue.vue +++ b/@xen-orchestra/web-core/lib/components/card/VtsCardRowKeyValue.vue @@ -25,11 +25,11 @@ const slots = defineSlots<{ diff --git a/@xen-orchestra/web/src/components/pif/PifStatus.vue b/@xen-orchestra/web/src/components/pif/PifStatus.vue new file mode 100644 index 00000000000..213417dfe4b --- /dev/null +++ b/@xen-orchestra/web/src/components/pif/PifStatus.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/@xen-orchestra/web/src/components/pif/PifTable.vue b/@xen-orchestra/web/src/components/pif/PifTable.vue new file mode 100644 index 00000000000..f3e090c14e0 --- /dev/null +++ b/@xen-orchestra/web/src/components/pif/PifTable.vue @@ -0,0 +1,261 @@ + + + + + diff --git a/@xen-orchestra/web/src/fakeGetNetwork.ts b/@xen-orchestra/web/src/fakeGetNetwork.ts new file mode 100644 index 00000000000..8e03acb28b3 --- /dev/null +++ b/@xen-orchestra/web/src/fakeGetNetwork.ts @@ -0,0 +1,8 @@ +export const getNetwork = { + id: 'd9424d50-def7-9882-64d3-4f305c87fb7a', + name_label: 'Production Management (Only For Olivier)', + nbd: false, + tags: ['Prod', 'Delete', 'QA'], + href: '/rest/v0/networks/d9424d50-def7-9882-64d3-4f305c87fb7a', + defaultIsLocked: false, +} diff --git a/@xen-orchestra/web/src/fakePifStore.ts b/@xen-orchestra/web/src/fakePifStore.ts new file mode 100644 index 00000000000..5be3467f4bc --- /dev/null +++ b/@xen-orchestra/web/src/fakePifStore.ts @@ -0,0 +1,618 @@ +export const pifsByHost = new Map([ + [ + 'c7f1c0a6-f8b3-4375-987f-1728d0bfed67', + [ + { + $host: 'c7f1c0a6-f8b3-4375-987f-1728d0bfed67', + $network: 'd9424d50-def7-9882-64d3-4f305c87fb7a', + attached: false, + carrier: true, + device: 'eth2', + dns: '', + gateway: '', + id: 'ab28cb66-a66d-a7a5-3d45-f0a463177a6f', + ipv6: [''], + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + vlan: -1, + href: '/rest/v0/pifs/ab28cb66-a66d-a7a5-3d45-f0a463177a6f', + }, + { + $host: 'c7f1c0a6-f8b3-4375-987f-1728d0bfed67', + $network: '6c4e1cdc-9fe0-0603-e53d-4790d1fce8dd', + attached: true, + carrier: true, + device: 'eth2', + dns: '172.16.210.1', + gateway: '172.16.210.1', + id: '10311e10-9ff1-2054-eacd-28091af06e27', + ipv6: [''], + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'Static', + mtu: 1500, + netmask: '255.255.254.0', + speed: 1000, + vlan: -1, + href: '/rest/v0/pifs/10311e10-9ff1-2054-eacd-28091af06e27', + }, + { + $host: 'c7f1c0a6-f8b3-4375-987f-1728d0bfed67', + $network: '56694dbf-af1e-16c1-a889-d083ffb39b8c', + attached: true, + carrier: true, + device: 'tunnel0', + dns: '', + gateway: '', + id: '94961949-a233-4dd6-9795-44658d5858ca', + ipv6: [''], + mac: '52:b7:42:4e:f8:fc', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + vlan: -1, + href: '/rest/v0/pifs/94961949-a233-4dd6-9795-44658d5858ca', + }, + { + $host: 'c7f1c0a6-f8b3-4375-987f-1728d0bfed67', + $network: '0728b52e-c5f0-e212-50c9-9bfef9d10a31', + attached: true, + carrier: true, + device: 'eth2', + dns: '', + gateway: '', + id: 'c583946a-4437-831b-01a9-0daee89af1ff', + ipv6: [''], + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + vlan: -1, + href: '/rest/v0/pifs/c583946a-4437-831b-01a9-0daee89af1ff', + }, + { + $host: 'c7f1c0a6-f8b3-4375-987f-1728d0bfed67', + $network: '4ed73661-3574-f788-33ac-77113780280d', + attached: true, + carrier: true, + device: 'eth2', + dns: '', + gateway: '', + id: 'd2fbe749-f3a2-5662-a429-33e6aa72907f', + ipv6: [''], + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + vlan: -1, + href: '/rest/v0/pifs/d2fbe749-f3a2-5662-a429-33e6aa72907f', + }, + { + $host: 'c7f1c0a6-f8b3-4375-987f-1728d0bfed67', + $network: '41260326-d783-f850-f16f-ac55d6b03cf0', + attached: true, + carrier: false, + device: 'eth3', + dns: '', + gateway: '', + id: 'c08f4687-d6b2-44f6-beaa-42c989c49f22', + ipv6: [], + mac: 'b8:ca:3a:6c:5b:ad', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 0, + vlan: -1, + href: '/rest/v0/pifs/c08f4687-d6b2-44f6-beaa-42c989c49f22', + }, + { + $host: 'c7f1c0a6-f8b3-4375-987f-1728d0bfed67', + $network: '54dcb8d8-0af0-7739-61c5-144875958b1e', + attached: true, + carrier: false, + device: 'eth1', + dns: '', + gateway: '', + id: '6130f280-aee0-8a3e-0492-3955391c35d9', + ipv6: [], + mac: 'b8:ca:3a:6c:5b:aa', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 0, + vlan: -1, + href: '/rest/v0/pifs/6130f280-aee0-8a3e-0492-3955391c35d9', + }, + { + $host: 'c7f1c0a6-f8b3-4375-987f-1728d0bfed67', + $network: '17fa6689-eb1a-77f1-0514-2d017004355a', + attached: true, + carrier: true, + device: 'eth0', + dns: '', + gateway: '', + id: 'ed842e87-bdb5-3249-3335-fc838c2f5605', + ipv6: [''], + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'Static', + mtu: 1500, + netmask: '255.255.255.0', + speed: 10000, + vlan: -1, + href: '/rest/v0/pifs/ed842e87-bdb5-3249-3335-fc838c2f5605', + }, + { + $host: 'c7f1c0a6-f8b3-4375-987f-1728d0bfed67', + $network: '2de2e773-8fbb-83cc-da96-214574c1b0e1', + attached: true, + carrier: true, + device: 'eth2', + dns: '', + gateway: '', + id: '73cf0263-1d9a-9ea2-4160-2e2cf6583fb5', + ipv6: [], + mac: 'b8:ca:3a:6c:5b:ac', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + vlan: -1, + href: '/rest/v0/pifs/73cf0263-1d9a-9ea2-4160-2e2cf6583fb5', + }, + { + $host: 'c7f1c0a6-f8b3-4375-987f-1728d0bfed67', + $network: '289ebdac-855a-4b49-46ce-02a4f12ff698', + attached: false, + carrier: true, + device: 'eth2', + dns: '', + gateway: '', + id: 'acf23945-b4d8-7d59-8c41-9954421f112d', + ipv6: [''], + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + vlan: -1, + href: '/rest/v0/pifs/acf23945-b4d8-7d59-8c41-9954421f112d', + }, + { + $host: 'c7f1c0a6-f8b3-4375-987f-1728d0bfed67', + $network: 'a12df741-f34f-7d05-f120-462f0ab39a48', + attached: true, + carrier: true, + device: 'eth0', + dns: '', + gateway: '', + id: '8bea7345-773b-6289-0f5f-8b5bd61b2ca1', + ipv6: [], + mac: 'b8:ca:3a:6c:5b:a8', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 10000, + vlan: -1, + href: '/rest/v0/pifs/8bea7345-773b-6289-0f5f-8b5bd61b2ca1', + }, + ], + ], + [ + '438aca0f-429c-4ae6-accc-93c306e636a0', + [ + { + $host: '438aca0f-429c-4ae6-accc-93c306e636a0', + $network: '4ed73661-3574-f788-33ac-77113780280d', + attached: true, + carrier: true, + device: 'eth2', + dns: '', + gateway: '', + id: 'ef35ddd4-adaf-0585-fc43-3be1dfa4074e', + ipv6: [ + '2001:0db8:0000:85a3:0000:0000:ac1f:8001', + '2001:0db8:0000:85a3:0000:0000:ac1f:8001', + '2001:0db8:0000:85a3:0000:0000:ac1f:8001', + '2001:0db8:0000:85a3:0000:0000:ac1f:8001', + '2001:0db8:0000:85a3:0000:0000:ac1f:8001', + '2001:0db8:0000:85a3:0000:0000:ac1f:8001', + ], + ip: '192.168.0.1', + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + vlan: -1, + href: '/rest/v0/pifs/ef35ddd4-adaf-0585-fc43-3be1dfa4074e', + }, + { + $host: '438aca0f-429c-4ae6-accc-93c306e636a0', + $network: '56694dbf-af1e-16c1-a889-d083ffb39b8c', + attached: true, + carrier: true, + device: 'tunnel0', + dns: '', + gateway: '', + id: '43a2cf42-d9fb-9382-b7df-8eb5f38ed03c', + ipv6: [''], + ip: '192.168.0.1', + mac: '6a:bd:52:81:0c:d4', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + vlan: -1, + href: '/rest/v0/pifs/43a2cf42-d9fb-9382-b7df-8eb5f38ed03c', + }, + { + $host: '438aca0f-429c-4ae6-accc-93c306e636a0', + $network: '54dcb8d8-0af0-7739-61c5-144875958b1e', + attached: true, + carrier: false, + device: 'eth1', + dns: '', + gateway: '', + id: 'ef56fe22-d03f-2461-d7fa-4f48d4d43601', + ipv6: [], + ip: '192.168.0.1', + mac: 'b8:ca:3a:6c:1c:4a', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 0, + vlan: -1, + href: '/rest/v0/pifs/ef56fe22-d03f-2461-d7fa-4f48d4d43601', + }, + { + $host: '438aca0f-429c-4ae6-accc-93c306e636a0', + $network: '2de2e773-8fbb-83cc-da96-214574c1b0e1', + attached: true, + carrier: true, + device: 'eth2', + dns: '', + gateway: '', + id: '7b71bca9-43c8-9b4a-2df5-eb714c93edef', + ipv6: [], + ip: '192.168.0.1', + mac: 'b8:ca:3a:6c:1c:4c', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + vlan: -1, + href: '/rest/v0/pifs/7b71bca9-43c8-9b4a-2df5-eb714c93edef', + }, + { + $host: '438aca0f-429c-4ae6-accc-93c306e636a0', + $network: '0728b52e-c5f0-e212-50c9-9bfef9d10a31', + attached: true, + carrier: true, + device: 'eth2', + dns: '', + gateway: '', + id: 'a8f8affd-f44d-ac9c-74ac-38c155d06bf0', + ipv6: [''], + ip: '192.168.0.1', + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + vlan: -1, + href: '/rest/v0/pifs/a8f8affd-f44d-ac9c-74ac-38c155d06bf0', + }, + { + $host: '438aca0f-429c-4ae6-accc-93c306e636a0', + $network: 'a12df741-f34f-7d05-f120-462f0ab39a48', + attached: true, + carrier: true, + device: 'eth0', + dns: '', + gateway: '', + id: '9dbe77b1-2e3f-5c11-a196-07c54680953b', + ipv6: [], + ip: '192.168.0.1', + mac: 'b8:ca:3a:6c:1c:48', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 10000, + vlan: -1, + href: '/rest/v0/pifs/9dbe77b1-2e3f-5c11-a196-07c54680953b', + }, + { + $host: '438aca0f-429c-4ae6-accc-93c306e636a0', + $network: '17fa6689-eb1a-77f1-0514-2d017004355a', + attached: true, + carrier: true, + device: 'eth0', + dns: '', + gateway: '', + id: '7fbb1487-01d6-6868-0e10-26d73e31e662', + ipv6: [''], + ip: '192.168.0.1', + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'Static', + mtu: 1500, + netmask: '255.255.255.0', + speed: 10000, + vlan: -1, + href: '/rest/v0/pifs/7fbb1487-01d6-6868-0e10-26d73e31e662', + }, + { + $host: '438aca0f-429c-4ae6-accc-93c306e636a0', + $network: 'd9424d50-def7-9882-64d3-4f305c87fb7a', + attached: false, + carrier: true, + device: 'eth2', + dns: '', + gateway: '', + id: 'eb600b74-76eb-204e-09ce-1130fbc4f973', + ipv6: [''], + ip: '192.168.0.1', + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + vlan: -1, + href: '/rest/v0/pifs/eb600b74-76eb-204e-09ce-1130fbc4f973', + }, + { + $host: '438aca0f-429c-4ae6-accc-93c306e636a0', + $network: '41260326-d783-f850-f16f-ac55d6b03cf0', + attached: true, + carrier: false, + device: 'eth3', + dns: '', + gateway: '', + id: '2e435391-472d-d42d-b7aa-7aa4c2988d04', + ipv6: [], + ip: '192.168.0.1', + mac: 'b8:ca:3a:6c:1c:4d', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 0, + vlan: -1, + href: '/rest/v0/pifs/2e435391-472d-d42d-b7aa-7aa4c2988d04', + }, + { + $host: '438aca0f-429c-4ae6-accc-93c306e636a0', + $network: '289ebdac-855a-4b49-46ce-02a4f12ff698', + attached: false, + carrier: true, + device: 'eth2', + dns: '', + gateway: '', + id: '36819d47-c0cc-7da2-ee5a-5318524700f6', + ipv6: [''], + ip: '192.168.0.1', + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + vlan: -1, + href: '/rest/v0/pifs/36819d47-c0cc-7da2-ee5a-5318524700f6', + }, + { + $host: '438aca0f-429c-4ae6-accc-93c306e636a0', + $network: '6c4e1cdc-9fe0-0603-e53d-4790d1fce8dd', + attached: true, + carrier: true, + device: 'eth2', + dns: '172.16.210.1', + gateway: '172.16.210.1', + id: 'e34b2a47-c2c7-8a41-7ace-a3cb1248098f', + ipv6: [''], + ip: '192.168.0.1', + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'Static', + mtu: 1500, + netmask: '255.255.254.0', + speed: 1000, + vlan: -1, + href: '/rest/v0/pifs/e34b2a47-c2c7-8a41-7ace-a3cb1248098f', + }, + ], + ], + [ + 'f26eb0a5-1d91-4682-ae58-96df405a3af6', + [ + { + $host: 'f26eb0a5-1d91-4682-ae58-96df405a3af6', + $network: '56694dbf-af1e-16c1-a889-d083ffb39b8c', + attached: true, + carrier: false, + device: 'tunnel0', + dns: '', + gateway: '', + id: '147e08e5-42f0-01fc-1f15-6616269264f5', + ipv6: [''], + mac: 'b2:94:f5:9b:11:6f', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 0, + href: '/rest/v0/pifs/147e08e5-42f0-01fc-1f15-6616269264f5', + }, + { + $host: 'f26eb0a5-1d91-4682-ae58-96df405a3af6', + $network: '17fa6689-eb1a-77f1-0514-2d017004355a', + attached: true, + carrier: true, + device: 'eth0', + dns: '', + gateway: '', + id: 'f2cc47af-6d65-7eee-84bd-920067d828f4', + ipv6: [''], + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'Static', + mtu: 1500, + netmask: '255.255.255.0', + speed: 10000, + href: '/rest/v0/pifs/f2cc47af-6d65-7eee-84bd-920067d828f4', + }, + { + $host: 'f26eb0a5-1d91-4682-ae58-96df405a3af6', + $network: '6c4e1cdc-9fe0-0603-e53d-4790d1fce8dd', + attached: true, + carrier: false, + device: 'eth2', + dns: '172.16.210.1', + gateway: '172.16.210.1', + id: 'b0e4b993-daea-bd53-34c5-7c1159a9109c', + ipv6: [''], + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'Static', + mtu: 1500, + netmask: '255.255.254.0', + speed: 0, + href: '/rest/v0/pifs/b0e4b993-daea-bd53-34c5-7c1159a9109c', + }, + { + $host: 'f26eb0a5-1d91-4682-ae58-96df405a3af6', + $network: '2de2e773-8fbb-83cc-da96-214574c1b0e1', + attached: true, + carrier: true, + device: 'eth2', + dns: '', + gateway: '', + id: '3e30fb8f-ef4a-8db8-c9b8-51a5002bfebf', + ipv6: [], + mac: 'b8:ca:3a:6c:11:84', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + href: '/rest/v0/pifs/3e30fb8f-ef4a-8db8-c9b8-51a5002bfebf', + }, + { + $host: 'f26eb0a5-1d91-4682-ae58-96df405a3af6', + $network: '0728b52e-c5f0-e212-50c9-9bfef9d10a31', + attached: true, + carrier: true, + device: 'eth2', + dns: '', + gateway: '', + id: '2ed51e44-6499-5229-eeec-8ffccbf70d61', + ipv6: [''], + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + href: '/rest/v0/pifs/2ed51e44-6499-5229-eeec-8ffccbf70d61', + }, + { + $host: 'f26eb0a5-1d91-4682-ae58-96df405a3af6', + $network: '4ed73661-3574-f788-33ac-77113780280d', + attached: true, + carrier: true, + device: 'eth2', + dns: '', + gateway: '', + id: '2c676954-f4ea-1abc-1b00-9b041e7bd6a5', + ipv6: [''], + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + href: '/rest/v0/pifs/2c676954-f4ea-1abc-1b00-9b041e7bd6a5', + }, + { + $host: 'f26eb0a5-1d91-4682-ae58-96df405a3af6', + $network: 'd9424d50-def7-9882-64d3-4f305c87fb7a', + attached: false, + carrier: true, + device: 'eth2', + dns: '', + gateway: '', + id: '99045e6a-2d73-58cb-9018-76fea6b016d3', + ipv6: [''], + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + href: '/rest/v0/pifs/99045e6a-2d73-58cb-9018-76fea6b016d3', + }, + { + $host: 'f26eb0a5-1d91-4682-ae58-96df405a3af6', + $network: '41260326-d783-f850-f16f-ac55d6b03cf0', + attached: true, + carrier: false, + device: 'eth3', + dns: '', + gateway: '', + id: 'cbd0ba1a-1bd1-ea57-e921-436030fc907e', + ipv6: [], + mac: 'b8:ca:3a:6c:11:85', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 0, + href: '/rest/v0/pifs/cbd0ba1a-1bd1-ea57-e921-436030fc907e', + }, + { + $host: 'f26eb0a5-1d91-4682-ae58-96df405a3af6', + $network: 'a12df741-f34f-7d05-f120-462f0ab39a48', + attached: true, + carrier: true, + device: 'eth0', + dns: '', + gateway: '', + id: '7c89e2f2-ec3c-2af9-31e2-d329fc133c50', + ipv6: [], + mac: 'b8:ca:3a:6c:11:80', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 10000, + href: '/rest/v0/pifs/7c89e2f2-ec3c-2af9-31e2-d329fc133c50', + }, + { + $host: 'f26eb0a5-1d91-4682-ae58-96df405a3af6', + $network: '289ebdac-855a-4b49-46ce-02a4f12ff698', + attached: false, + carrier: true, + device: 'eth2', + dns: '', + gateway: '', + id: 'b66c5a85-c050-2830-7344-4175f6495c64', + ipv6: [''], + mac: 'fe:ff:ff:ff:ff:ff', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 1000, + href: '/rest/v0/pifs/b66c5a85-c050-2830-7344-4175f6495c64', + }, + { + $host: 'f26eb0a5-1d91-4682-ae58-96df405a3af6', + $network: '54dcb8d8-0af0-7739-61c5-144875958b1e', + attached: true, + carrier: false, + device: 'eth1', + dns: '', + gateway: '', + id: 'd313973a-ac54-a559-a6ab-587f6eec460d', + ipv6: [], + mac: 'b8:ca:3a:6c:11:82', + mode: 'None', + mtu: 1500, + netmask: '', + speed: 0, + href: '/rest/v0/pifs/d313973a-ac54-a559-a6ab-587f6eec460d', + }, + ], + ], +]) diff --git a/@xen-orchestra/web/src/pages/host/[id]/network.vue b/@xen-orchestra/web/src/pages/host/[id]/network.vue new file mode 100644 index 00000000000..0d4af0765f3 --- /dev/null +++ b/@xen-orchestra/web/src/pages/host/[id]/network.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/@xen-orchestra/web/typed-router.d.ts b/@xen-orchestra/web/typed-router.d.ts index e3a1a98ebf1..0abcb49c534 100644 --- a/@xen-orchestra/web/typed-router.d.ts +++ b/@xen-orchestra/web/typed-router.d.ts @@ -26,6 +26,7 @@ declare module 'vue-router/auto-routes' { '/host/[id]': RouteRecordInfo<'/host/[id]', '/host/:id', { id: ParamValue }, { id: ParamValue }>, '/host/:id': RouteRecordInfo<'/host/:id', '/host/:id', { id: ParamValue }, { id: ParamValue }>, '/host/[id]/console': RouteRecordInfo<'/host/[id]/console', '/host/:id/console', { id: ParamValue }, { id: ParamValue }>, + '/host/[id]/network': RouteRecordInfo<'/host/[id]/network', '/host/:id/network', { id: ParamValue }, { id: ParamValue }>, '/host/[id]/vms': RouteRecordInfo<'/host/[id]/vms', '/host/:id/vms', { id: ParamValue }, { id: ParamValue }>, '/pool/[id]': RouteRecordInfo<'/pool/[id]', '/pool/:id', { id: ParamValue }, { id: ParamValue }>, '/pool/:id': RouteRecordInfo<'/pool/:id', '/pool/:id', { id: ParamValue }, { id: ParamValue }>,