feat: sync NBI NRM task
This commit is contained in:
45
src/modules/crontask/processor/syncNbiNRM/pcf/schema.go
Normal file
45
src/modules/crontask/processor/syncNbiNRM/pcf/schema.go
Normal file
@@ -0,0 +1,45 @@
|
||||
package pcf
|
||||
|
||||
import "be.ems/src/modules/crontask/processor/syncNbiNRM/common"
|
||||
|
||||
const (
|
||||
PCF string = "PCF" // 网元类型
|
||||
)
|
||||
|
||||
type ManagedElement struct {
|
||||
Id string `json:"id"`
|
||||
UserLabel string `json:"userLabel"`
|
||||
VendorName string `json:"vendorName"`
|
||||
ManagedBy string `json:"managedBy"`
|
||||
ManagementIpAddress string `json:"managementIpAddress"`
|
||||
SwVersion string `json:"swVersion"`
|
||||
PatchInfo string `json:"patchInfo"`
|
||||
AdministrativeState common.AdministrativeState `json:"administrativeState"`
|
||||
OperationalState common.OperationalState `json:"operationalState"`
|
||||
}
|
||||
|
||||
type PcfFunction struct {
|
||||
Id string `json:"id"`
|
||||
UserLabel string `json:"userLabel"`
|
||||
AdministrativeState common.AdministrativeState `json:"administrativeState"`
|
||||
OperationalState common.OperationalState `json:"operationalState"`
|
||||
VnfInstanceId string `json:"vnfInstanceId"`
|
||||
Fqdn string `json:"fqdn"`
|
||||
SbiServiceList string `json:"sbiServiceList"`
|
||||
}
|
||||
|
||||
type UdrFunction struct {
|
||||
Id string `json:"id"`
|
||||
UserLabel string `json:"userLabel"`
|
||||
AdministrativeState common.AdministrativeState `json:"administrativeState"`
|
||||
OperationalState common.OperationalState `json:"operationalState"`
|
||||
MaxSubNbr int `json:"maxSubNbr"`
|
||||
}
|
||||
|
||||
type IPResource struct {
|
||||
Id string `json:"id"`
|
||||
UserLabel string `json:"userLabel"`
|
||||
InterfaceType string `json:"interfaceType"`
|
||||
LocIpV4AddrList string `json:"locIpV4AddrList"`
|
||||
LocIpV6AddrList string `json:"locIpV6AddrList"`
|
||||
}
|
||||
Reference in New Issue
Block a user