fix: addrtype issue and SlotsOccupied value type issue
This commit is contained in:
@@ -153,7 +153,7 @@ func SyncNbiCM() error {
|
||||
addrPool := AddrPool{
|
||||
Id: fmt.Sprintf("%s-%s-AddrPool", ne.NeType, ne.NeId),
|
||||
UserLabel: ne.NeName + "-AddrPool",
|
||||
AddrType: "UE",
|
||||
AddrType: "Static",
|
||||
IpVersion: "IPv4",
|
||||
AddrSegList: `{{StartIp:10.60.1.100,SegLen:100},{StartIp:10.61.1.100,SegLen:100}}`,
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ func SyncNbiCM() error {
|
||||
ManufacturerData: "{}",
|
||||
PortsInformation: `{{"port-1","Ethernet 10Gbs",Used},{"port-2","Ethernet 10Gbps",Used}, {"port-3","optical 50Gbps",Used}, {"port-4","optical 50Gbps",Unused}}`,
|
||||
PackPosition: "2-2",
|
||||
SlotsOccupied: "2",
|
||||
SlotsOccupied: `{"3","4"}`,
|
||||
}
|
||||
packJSON, err := json.Marshal(inventoryUnitPack)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user