This commit is contained in:
2024-11-12 12:51:21 +03:00
parent f1e0f7abb6
commit 80491ed643
226 changed files with 3033 additions and 2633 deletions

View File

@@ -107,6 +107,9 @@ type QOS struct {
// Main information about interface
type ItemInterface struct {
// Bus number
BusNumber uint64 `json:"bus_number"`
// Connection ID
ConnID uint64 `json:"connId"`
@@ -134,6 +137,12 @@ type ItemInterface struct {
// MAC
MAC string `json:"mac"`
// Maximum transmission unit
MTU uint64 `json:"mtu"`
// Libvirt Settings
LibvirtSettings LibvirtSettings `json:"libvirtSettings"`
// Name
Name string `json:"name"`
@@ -462,6 +471,11 @@ type RecordVNFs struct {
NAT RecordNAT `json:"NAT"`
}
type Computes struct {
ID uint64 `json:"id"`
Name string `json:"name"`
}
// Detailed information about VINS
type RecordVINS struct {
// VNF device
@@ -473,6 +487,9 @@ type RecordVINS struct {
// Account name
AccountName string `json:"accountName"`
// Computes
Computes []Computes `json:"computes"`
// Created by
CreatedBy string `json:"createdBy"`
@@ -558,6 +575,30 @@ type RecordVINS struct {
VXLANID uint64 `json:"vxlanId"`
}
// Information about libvirt settings
type LibvirtSettings struct {
// TX mode
TXMode string `json:"txmode"`
// IO event
IOEventFD string `json:"ioeventfd"`
// Event ID
EventIDx string `json:"event_idx"`
// Number of queues
Queues uint64 `json:"queues"`
// RX queue size
RXQueueSize uint64 `json:"rx_queue_size"`
// TX queue size
TXQueueSize uint64 `json:"tx_queue_size"`
// GUID
GUID string `json:"guid"`
}
// Main information about IP
type ItemIP struct {
// IP