This commit is contained in:
2024-12-27 11:35:22 +03:00
parent 88eb9e8898
commit e04dc42d2b
37 changed files with 516 additions and 274 deletions

View File

@@ -29,6 +29,9 @@ type RecordNode struct {
// NeedReboot
NeedReboot bool `json:"needReboot"`
// Netaddr
NetAddr NetAddr `json:"netaddr"`
// Nic Info
NicInfo ListNicInfo `json:"nicInfo"`
@@ -314,3 +317,12 @@ type ListNodes struct {
// Entry count
EntryCount uint64 `json:"entryCount"`
}
// Net address
type NetAddr struct {
// Name
Name string `json:"name"`
// IP list backplane1 node
IP []string `json:"ip"`
}

View File

@@ -24,6 +24,10 @@ type SetVFsNumberRequest struct {
// Trust
// Required: true
Trust bool `url:"trust" json:"trust" validate:"required"`
// Enable spoof checking
// Required: true
Spoofchk bool `url:"spoofchk" json:"spoofchk" validate:"required"`
}
// SetVFsNumber sets number of VFs for individual NIC on node