"dmiPlugin": DMI_PLUGIN_URL,
"createdCmHandles": cmHandleIds.map((cmHandleId, index) => ({
"cmHandle": cmHandleId,
- "alternateId": cmHandleId.replace('ch-', 'alt-'),
+ "alternateId": cmHandleId.replace('ch-', 'Subnetwork=Europe,ManagedElement='),
"moduleSetTag": MODULE_SET_TAGS[index % MODULE_SET_TAGS.length],
- "cmHandleProperties": {"neType": "RadioNode"},
+ "cmHandleProperties": {
+ "id": "123"
+ },
"publicCmHandleProperties": {
"Color": "yellow",
"Size": "small",
export function passthroughRead(useAlternateId) {
const cmHandleReference = getRandomCmHandleReference(useAlternateId);
- const resourceIdentifier = 'my-resource-identifier';
+ const resourceIdentifier = 'NRCellDU/attributes/cellLocalId';
const datastoreName = 'ncmp-datastore:passthrough-operational';
const includeDescendants = true;
const url = generatePassthroughUrl(cmHandleReference, datastoreName, resourceIdentifier, includeDescendants);
export function passthroughWrite(useAlternateId) {
const cmHandleReference = getRandomCmHandleReference(useAlternateId);
- const resourceIdentifier = 'my-resource-identifier';
+ const resourceIdentifier = 'NRCellDU/attributes/cellLocalId';
const datastoreName = 'ncmp-datastore:passthrough-running';
const includeDescendants = false;
const url = generatePassthroughUrl(cmHandleReference, datastoreName, resourceIdentifier, includeDescendants);
- const payload = JSON.stringify({"neType": "BaseStation"});
+ const payload = JSON.stringify({
+ "id": "123",
+ "attributes": {"userLabel": "test"}
+ });
return performPostRequest(url, payload, 'passthroughWrite');
}
const payload = JSON.stringify({
"operations": [
{
- "resourceIdentifier": "parent/child",
+ "resourceIdentifier": "NRCellDU/attributes/cellLocalId",
"targetIds": cmHandleIds,
"datastore": "ncmp-datastore:passthrough-operational",
- "options": "(fields=schemas/schema)",
+ "options": "(fields=NRCellDU/attributes/cellLocalId)",
"operationId": "12",
"operation": "read"
}
}
function getRandomCmHandleReference(useAlternateId) {
- const prefix = useAlternateId ? 'alt' : 'ch';
- return `${prefix}-${randomIntBetween(1, TOTAL_CM_HANDLES)}`;
+ const prefix = useAlternateId ? 'Subnetwork=Europe,ManagedElement=' : 'ch-';
+ return `${prefix}${randomIntBetween(1, TOTAL_CM_HANDLES)}`;
}
function generatePassthroughUrl(cmHandleReference, datastoreName, resourceIdentifier, includeDescendants) {