add: 提交

This commit is contained in:
lichang
2023-08-14 17:02:50 +08:00
parent 897d45d443
commit 5ac2e981ea
163 changed files with 29466 additions and 0 deletions

View File

@@ -0,0 +1,64 @@
package cmschema
// FileHeader ...
type FileHeader struct {
TimeStamp string `xml:"TimeStamp"`
TimeZone string `xml:"TimeZone"`
VendorName string `xml:"VendorName"`
ElementType string `xml:"ElementType"`
CmVersion string `xml:"CmVersion"`
}
// N ...
type N struct {
IAttr int `xml:"i,attr"`
Value string `xml:",chardata"`
}
// FieldName ...
type FieldName struct {
N []N `xml:"N"`
}
// V ...
type V struct {
IAttr int `xml:"i,attr"`
Value string `xml:",chardata"`
}
// Object ...
type Object struct {
RmUIDAttr string `xml:"rmUID,attr"`
DnAttr string `xml:"Dn,attr,omitempty"`
UserLabelAttr string `xml:"UserLabel,attr,omitempty"`
PVFlagAttr string `xml:"PVFlag,attr"`
VMIDAttr string `xml:"VMID,attr,omitempty"`
VNFInstanceIDAttr string `xml:"VNFInstanceID,attr,omitempty"`
V []V `xml:"V"`
}
// FieldValue ...
type FieldValue struct {
Object []Object `xml:"Object"`
}
// Objects ...
type Objects struct {
ObjectType string `xml:"ObjectType"`
FieldName FieldName `xml:"FieldName"`
FieldValue FieldValue `xml:"FieldValue"`
}
// DataFile ...
type DataFile struct {
FileHeader FileHeader `xml:"FileHeader"`
Objects []Objects `xml:"Objects"`
XsiAttr string `xml:"xmlns:xsi,attr"`
XsiLoc string `xml:"xsi:noNamespaceSchemaLocation,attr"`
}
// NRM xml file
type NRMXmlFile struct {
Header string `xml:"Header"`
DataFile DataFile `xml:"xmlns:xsi"`
}

296
crontask/cm/yaml/cm-yaml.go Normal file
View File

@@ -0,0 +1,296 @@
package cmyaml
type UdmCm struct {
ManagedElement ManagedElement `yaml:"ManagedElement"`
UdmFunction UdmFunction `yaml:"UdmFunction"`
UdrFunction UdrFunction `yaml:"UdrFunction"`
AusfFunction AusfFunction `yaml:"AusfFunction"`
IPResource IPResource `yaml:"IPResource"`
}
type UdmFunction struct {
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
AdministrativeState string `yaml:"AdministrativeState"`
OperationalState string `yaml:"OperationalState"`
VnfInstanceId string `yaml:"VnfInstanceId"`
Fqdn string `yaml:"Fqdn"`
SbiServiceList string `yaml:"SbiServiceList"`
}
type UdrFunction struct {
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
AddrType string `yaml:"AddrType"`
IpVersion string `yaml:"IpVersion"`
AddrSegList string `yaml:"AddrSegList"`
}
type AusfFunction struct {
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
LocIpAddrList string `yaml:"LocIpAddrList"`
FarIpSubnetworkList string `yaml:"FarIpSubnetworkList"`
}
type IPResource struct {
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
InterfaceType string `yaml:"InterfaceType"`
LocIpV4AddrList string `yaml:"LocIpV4AddrList"`
LocIpV6AddrList string `yaml:"LocIpV6AddrList"`
}
type ManagedElement struct {
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
VendorName string `yaml:"VendorName"`
ManagedBy string `yaml:"ManagedBy"`
ManagementIpAddress string `yaml:"ManagementIpAddress"`
SwVersion string `yaml:"SwVersion"`
PatchInfo string `yaml:"PatchInfo"`
AdministrativeState string `yaml:"AdministrativeState"`
OperationalState string `yaml:"OperationalState"`
}
type AmfCm struct {
ManagedElement ManagedElement `yaml:"ManagedElement"`
AmfFunction AmfFunction `yaml:"AmfFunction"`
EpRpDynN8Amf EpRpDynN8Amf `yaml:"EpRpDynN8Amf"`
EpRpDynN11Amf EpRpDynN11Amf `yaml:"EpRpDynN11Amf"`
EpRpDynN12Amf EpRpDynN12Amf `yaml:"EpRpDynN12Amf"`
IPResource IPResource `yaml:"IPResource"`
}
type EpRpDynN11Amf struct {
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
LocIpAddrList string `yaml:"LocIpAddrList"`
FarIpSubnetworkList string `yaml:"FarIpSubnetworkList"`
}
type EpRpDynN12Amf struct {
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
LocIpAddrList string `yaml:"LocIpAddrList"`
FarIpSubnetworkList string `yaml:"FarIpSubnetworkList"`
}
type AmfFunction struct {
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
AdministrativeState string `yaml:"AdministrativeState"`
Fqdn string `yaml:"Fqdn"`
SbiServiceList string `yaml:"SbiServiceList"`
AmfGuamiList string `yaml:"AmfGuamiList"`
OperationalState string `yaml:"OperationalState"`
VnfInstanceId string `yaml:"VnfInstanceId"`
SnssaiList string `yaml:"SnssaiList"`
MaxUser string `yaml:"MaxUser"`
RelativeCapacity string `yaml:"RelativeCapacity"`
MaxGnbNum string `yaml:"MaxGnbNum"`
}
type EpRpDynN8Amf struct {
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
LocIpAddrList string `yaml:"LocIpAddrList"`
FarIpSubnetworkList string `yaml:"FarIpSubnetworkList"`
}
type SmfCm struct {
ManagedElement ManagedElement `yaml:"ManagedElement"`
SmfFunction SmfFunction `yaml:"SmfFunction"`
AddrPool AddrPool `yaml:"AddrPool"`
EpRpDynN7Smf EpRpDynN7Smf `yaml:"EpRpDynN7Smf"`
EpRpDynN10Smf EpRpDynN10Smf `yaml:"EpRpDynN10Smf"`
IPResource IPResource `yaml:"IPResource"`
}
type SmfFunction struct {
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
VnfInstanceId string `yaml:"VnfInstanceId"`
MaxQfi string `yaml:"MaxQfi"`
MaxPduSessions string `yaml:"MaxPduSessions"`
UpfList string `yaml:"UpfList"`
AdministrativeState string `yaml:"AdministrativeState"`
OperationalState string `yaml:"OperationalState"`
Fqdn string `yaml:"Fqdn"`
SbiServiceList string `yaml:"SbiServiceList"`
}
type AddrPool struct {
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
AddrType string `yaml:"AddrType"`
IpVersion string `yaml:"IpVersion"`
AddrSegList string `yaml:"AddrSegList"`
}
type EpRpDynN7Smf struct {
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
LocIpAddrList string `yaml:"LocIpAddrList"`
FarIpSubnetworkList string `yaml:"FarIpSubnetworkList"`
}
type EpRpDynN10Smf struct {
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
LocIpAddrList string `yaml:"LocIpAddrList"`
FarIpSubnetworkList string `yaml:"FarIpSubnetworkList"`
}
type UpfCm struct {
IPResource IPResource `yaml:"IPResource"`
InventoryUnitHost InventoryUnitHost `yaml:"InventoryUnitHost"`
InventoryUnitAccessory InventoryUnitAccessory `yaml:"InventoryUnitAccessory"`
UdrFunction UpfUdrFunction `yaml:"UdrFunction"`
InventoryUnitRack InventoryUnitRack `yaml:"InventoryUnitRack"`
EpRpDynN9Upf EpRpDynN9Upf `yaml:"EpRpDynN9Upf"`
AusfFunction UpfAusfFunction `yaml:"AusfFunction"`
SmfFunction UpfSmfFunction `yaml:"SmfFunction"`
InventoryUnitPack InventoryUnitPack `yaml:"InventoryUnitPack"`
UpfFunction UpfFunction `yaml:"UpfFunction"`
AmfFunction UpfAmfFunction `yaml:"AmfFunction"`
ManagedElement ManagedElement `yaml:"ManagedElement"`
InventoryUnitShelf InventoryUnitShelf `yaml:"InventoryUnitShelf"`
EpRpDynN3Upf EpRpDynN3Upf `yaml:"EpRpDynN3Upf"`
}
type InventoryUnitRack struct {
SbiServiceList string `yaml:"SbiServiceList"`
Fqdn string `yaml:"Fqdn"`
UserLabel string `yaml:"UserLabel"`
AdministrativeState string `yaml:"AdministrativeState"`
OperationalState string `yaml:"OperationalState"`
VnfInstanceId string `yaml:"VnfInstanceId"`
MaxPduSessions string `yaml:"MaxPduSessions"`
MaxQfi string `yaml:"MaxQfi"`
UpfList string `yaml:"UpfList"`
Id string `yaml:"Id"`
}
type UpfAusfFunction struct {
UserLabel string `yaml:"UserLabel"`
AdministrativeState string `yaml:"AdministrativeState"`
OperationalState string `yaml:"OperationalState"`
VnfInstanceId string `yaml:"VnfInstanceId"`
Fqdn string `yaml:"Fqdn"`
Id string `yaml:"Id"`
}
type EpRpDynN3Upf struct {
LocIpAddrList string `yaml:"LocIpAddrList"`
FarIpSubnetworkList string `yaml:"FarIpSubnetworkList"`
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
}
type InventoryUnitHost struct {
UserLabel string `yaml:"UserLabel"`
VendorName string `yaml:"VendorName"`
DateOfLastService string `yaml:"DateOfLastService"`
ManufacturerData string `yaml:"ManufacturerData"`
VendorUnitTypeNumber string `yaml:"VendorUnitTypeNumber"`
HostPosition string `yaml:"HostPosition"`
MemSize string `yaml:"MemSize"`
HardDiskSize string `yaml:"HardDiskSize"`
NumberOfCpu string `yaml:"NumberOfCpu"`
Id string `yaml:"Id"`
VendorUnitFamilyType string `yaml:"VendorUnitFamilyType"`
SerialNumber string `yaml:"SerialNumber"`
VersionNumber string `yaml:"VersionNumber"`
DateOfManufacture string `yaml:"DateOfManufacture"`
}
type InventoryUnitAccessory struct {
UserLabel string `yaml:"UserLabel"`
VendorName string `yaml:"VendorName"`
SerialNumber string `yaml:"SerialNumber"`
ManufacturerData string `yaml:"ManufacturerData"`
DateOfLastService string `yaml:"DateOfLastService"`
AccessoryPosition string `yaml:"AccessoryPosition"`
AccessoryType string `yaml:"AccessoryType"`
Id string `yaml:"Id"`
VendorUnitFamilyType string `yaml:"VendorUnitFamilyType"`
VendorUnitTypeNumber string `yaml:"VendorUnitTypeNumber"`
VersionNumber string `yaml:"VersionNumber"`
DateOfManufacture string `yaml:"DateOfManufacture"`
AddtionalInformation string `yaml:"AddtionalInformation"`
}
type EpRpDynN9Upf struct {
UserLabel string `yaml:"UserLabel"`
LocIpAddrList string `yaml:"LocIpAddrList"`
FarIpSubnetworkList string `yaml:"FarIpSubnetworkList"`
Id string `yaml:"Id"`
}
type UpfSmfFunction struct {
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
AdministrativeState string `yaml:"AdministrativeState"`
OperationalState string `yaml:"OperationalState"`
VnfInstanceId string `yaml:"VnfInstanceId"`
Fqdn string `yaml:"Fqdn"`
}
type InventoryUnitPack struct {
VendorUnitFamilyType string `yaml:"VendorUnitFamilyType"`
VendorName string `yaml:"VendorName"`
VersionNumber string `yaml:"VersionNumber"`
DateOfManufacture string `yaml:"DateOfManufacture"`
DateOfLastService string `yaml:"DateOfLastService"`
ManufacturerData string `yaml:"ManufacturerData"`
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
PortsInformation string `yaml:"PortsInformation"`
PackPosition string `yaml:"PackPosition"`
SlotsOccupied string `yaml:"SlotsOccupied"`
VendorUnitTypeNumber string `yaml:"VendorUnitTypeNumber"`
SerialNumber string `yaml:"SerialNumber"`
}
type UpfAmfFunction struct {
VnfInstanceId string `yaml:"VnfInstanceId"`
Fqdn string `yaml:"Fqdn"`
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
AdministrativeState string `yaml:"AdministrativeState"`
OperationalState string `yaml:"OperationalState"`
}
type InventoryUnitShelf struct {
ManufacturerData string `yaml:"ManufacturerData"`
RackPosition string `yaml:"RackPosition"`
SerialNumber string `yaml:"SerialNumber"`
VersionNumber string `yaml:"VersionNumber"`
VendorUnitFamilyType string `yaml:"VendorUnitFamilyType"`
VendorUnitTypeNumber string `yaml:"VendorUnitTypeNumber"`
VendorName string `yaml:"VendorName"`
DateOfManufacture string `yaml:"DateOfManufacture"`
DateOfLastService string `yaml:"DateOfLastService"`
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
}
type UpfUdrFunction struct {
OperationalState string `yaml:"OperationalState"`
VnfInstanceId string `yaml:"VnfInstanceId"`
Fqdn string `yaml:"Fqdn"`
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
AdministrativeState string `yaml:"AdministrativeState"`
}
type UpfFunction struct {
MaxThroughput string `yaml:"MaxThroughput"`
Id string `yaml:"Id"`
UserLabel string `yaml:"UserLabel"`
AdministrativeState string `yaml:"AdministrativeState"`
OperationalState string `yaml:"OperationalState"`
VnfInstanceId string `yaml:"VnfInstanceId"`
MaxQosFlows string `yaml:"MaxQosFlows"`
}