Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
S3bastianCZ committed Feb 28, 2025
1 parent 6cdf914 commit 6ebe5fb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
12 changes: 0 additions & 12 deletions @xen-orchestra/web/src/stores/xo-rest-api/pif.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,6 @@ export const usePifStore = defineStore('pif', () => {
return pifsByHostMap
})

const getPifStatus = (pif: XoPif) => {
if (!pif.attached) {
return 'disconnected'
}

if (!pif.carrier) {
return 'disconnected-from-physical-device'
}

return 'connected'
}

const getBondsDevices = (pif: XoPif) => {
if (!pif.isBondMaster) return []

Expand Down
1 change: 0 additions & 1 deletion @xen-orchestra/web/src/types/xo/pif.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ export type XoPif = {
speed: number
vlan: number
isBondMaster: boolean
isBondSlave: boolean
bondSlaves: XoPif['id'][]
}
2 changes: 1 addition & 1 deletion @xen-orchestra/web/src/utils/xo-api-definition.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const xoApiDefinition = {
type: 'collection',
path: 'pifs',
fields:
'$host,$network,attached,carrier,device,dns,gateway,id,ip,ipv6,mac,management,mode,mtu,netmask,speed,vlan,isBondMaster,isBondSlave,bondSlaves',
'$host,$network,attached,carrier,device,dns,gateway,id,ip,ipv6,mac,management,mode,mtu,netmask,speed,vlan,isBondMaster,bondSlaves',
handler: (record: XoPif) => record,
},
network: {
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

- **XO6**:
- [Pool/Network]: Display networks and host internal networks information in side panel (PR [#8286](https://github.com/vatesfr/xen-orchestra/pull/8286))
- [Host/Network]: Display pifs information in side panel (PR [#8287](https://github.com/vatesfr/xen-orchestra/pull/8287))

> Users must be able to say: “Nice enhancement, I'm eager to test it”
Expand All @@ -35,5 +36,8 @@
<!--packages-start-->

- @xen-orchestra/web minor
- @xen-orchestra/web-core minor
- xo-server minor
- xo-web minor

<!--packages-end-->

0 comments on commit 6ebe5fb

Please sign in to comment.