From 60a97cb7282a4974df86454c29914f82f6601b39 Mon Sep 17 00:00:00 2001 From: "Tait,Trevor(rt0435)" Date: Fri, 22 Feb 2019 12:23:01 -0500 Subject: ND Context Builder Updates for port/p-interface Fix p-interfaceSpec to convert adminStateUp to lockedBoolean Issue-ID: LOG-977 Change-Id: Ib733996b46591e4cf3a72e91665ab83817071596 Signed-off-by: Tait,Trevor(rt0435) --- config/jolt/p-interfaceSpec.json | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) (limited to 'config/jolt') diff --git a/config/jolt/p-interfaceSpec.json b/config/jolt/p-interfaceSpec.json index c7d5542..596b2ba 100644 --- a/config/jolt/p-interfaceSpec.json +++ b/config/jolt/p-interfaceSpec.json @@ -14,7 +14,10 @@ "*": { // filter the Network Discovery attributes that we want to keep, to a temporary list: "name": { - "mac_address": { + "adminStateUp": { + "@2": "tempList[]" + }, + "macAddress": { "@2": "tempList[]" }, "description": { @@ -26,8 +29,7 @@ } } } - } - , + }, { // Convert the attribute names to common model names. "operation": "shift", @@ -35,15 +37,28 @@ "tempList": { "*": { "name": { - "mac_address": { - "#macAddress": "attributeList[#4].name" + "adminStateUp": { + "#lockedBoolean": "attributeList[&3].name", + "@(2,value)": { + "true": { + "#false": "attributeList[&5].value" + }, + "false": { + "#true": "attributeList[&5].value" + } + }, + "@(2,dataQuality)": "attributeList[&3].dataQuality" + }, + "macAddress": { + "#macAddress": "attributeList[&3].name", + "@(2,value)": "attributeList[&3].value", + "@(2,dataQuality)": "attributeList[&3].dataQuality" }, "description": { - "#description": "attributeList[#4].name" + "#description": "attributeList[&3].name", + "@(2,value)": "attributeList[&3].value", + "@(2,dataQuality)": "attributeList[&3].dataQuality" } - }, - "*": { - "@": "attributeList[#3].&" } } }, @@ -51,5 +66,6 @@ "@": "&" } } - } + } + ] -- cgit 1.2.3-korg