1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00
Files
incus/shared/api/network_allocation.go
Stéphane Graber 358907fe17 shared/api: Rename network_allocation for consistency
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Sponsored-by: Luizalabs (https://luizalabs.com)
2024-02-27 23:46:32 -05:00

26 lines
820 B
Go

package api
// NetworkAllocations used for displaying network addresses used by a consuming entity
// e.g, instance, network forward, load-balancer, network...
//
// swagger:model
//
// API extension: network_allocations.
type NetworkAllocations struct {
// The network address of the allocation (in CIDR format)
// Example: 192.0.2.1/24
Address string `json:"addresses" yaml:"addresses"`
// Hwaddr is the MAC address of the entity consuming the network address
Hwaddr string `json:"hwaddr" yaml:"hwaddr"`
// Whether the entity comes from a network that performs egress source NAT
NAT bool `json:"nat" yaml:"nat"`
// Type of the entity consuming the network address
Type string `json:"type" yaml:"type"`
// Name of the entity consuming the network address
UsedBy string `json:"used_by" yaml:"used_by"`
}