[2018/06/13 08:59:50.766049] ipam.mqt.maple.waffle.com (DEBUG): got: d98a2032-d45e-4399-bc84-c7c5a89f1f3a, stored: None
[2018/06/13 08:59:50.774978] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/13 08:59:50.775297] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'yyy.yyy.176.11', u'mac': u'12:34:56:78:91:23', u'host': u'fstesthost.mqt.maple.waffle.com', u'extattrs': {u'NetReg SITC Username': {u'value': u'username@maple.waffle.com'}, u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'mqt'}, u'FS_Site': {u'value': u'Lab'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'500'}, u'NetReg Ownership': {u'value': u'Commerical'}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'176'}, u'NetReg Physical Host': {u'value': u'hyper.mqt.maple.waffle.com'}, u'Environment': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'maple System Center Protected (SSCPE)'}, u'FS_RemediateOnEvent': {u'value': u'true'}, u'NetReg MAC Address': {u'value': u'00:00:00:00:00:00'}, u'NetReg Cost Center': {u'value': u'85P532290S'}, u'FS_Sync': {u'value': u'true'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'3G2'}, u'NetReg Administrator': {u'value': u'tim'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmZzdGVzdGhvc3QuMTk4LjI1My4xNzYuMTEu:yyy.yyy.176.11/fstesthost.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/13 08:59:50.775502] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/13 08:59:50.808583] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/13 08:59:50.808819] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/13 08:59:50.808972] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/13 08:59:50.809200] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'yyy.yyy.176.11', u'mac': u'12:34:56:78:91:23', u'host': u'fstesthost.mqt.maple.waffle.com', u'extattrs': {u'NetReg SITC Username': {u'value': u'username@maple.waffle.com'}, u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'mqt'}, u'FS_Site': {u'value': u'Lab'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'500'}, u'NetReg Ownership': {u'value': u'Commerical'}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'176'}, u'NetReg Physical Host': {u'value': u'hyper.mqt.maple.waffle.com'}, u'Environment': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'maple System Center Protected (SSCPE)'}, u'FS_RemediateOnEvent': {u'value': u'true'}, u'NetReg MAC Address': {u'value': u'00:00:00:00:00:00'}, u'NetReg Cost Center': {u'value': u'85P532290S'}, u'FS_Sync': {u'value': u'true'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'3G2'}, u'NetReg Administrator': {u'value': u'tim'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmZzdGVzdGhvc3QuMTk4LjI1My4xNzYuMTEu:yyy.yyy.176.11/fstesthost.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/13 08:59:50.809316] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/13 08:59:50.809404] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/13 08:59:50.809496] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/13 08:59:50.809638] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=yyy.yyy.176.11]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/13 08:59:50.809944] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '7f1d4eb5-a3c9-4135-aa15-93e4e9ad5441', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528898390', 'TIME': '2018-06-13T13:59:50Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/13 08:59:50.810054] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/13 08:59:50.810246] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/13 08:59:50.810336] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/13 08:59:50.810522] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-13T13:59
[2018/06/13 08:59:50.810599] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/13 08:59:50.810679] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/13 08:59:50.810762] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/13 08:59:50.810885] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/13 08:59:50.811069] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/13 08:59:50.811144] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/13 08:59:50.811202] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/13 08:59:50.811544] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/13 08:59:50.811633] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/13 08:59:50.811754] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/13 08:59:50.811920] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/13 08:59:50.812045] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: 12:34:56:78:91:23 !=
[2018/06/13 08:59:50.812120] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/13 08:59:50.812191] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/13 08:59:50.812316] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/13 08:59:50.812402] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/13 08:59:50.812520] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/13 08:59:50.812594] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/13 08:59:50.812671] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/13 08:59:50.812752] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/13 08:59:50.812875] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == false
[2018/06/13 08:59:50.812948] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/13 08:59:50.813027] ipam.mqt.maple.waffle.com (DEBUG): Executing step Goto for delete action (1)
[2018/06/13 08:59:50.813118] ipam.mqt.maple.waffle.com (DEBUG): Found a/an OR condition step!
[2018/06/13 08:59:50.813228] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: INSERT == DELETE
[2018/06/13 08:59:50.813336] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == RELEASED
[2018/06/13 08:59:50.813442] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == FREE
[2018/06/13 08:59:50.813512] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/13 08:59:50.813591] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease_go_for_Data (1)
[2018/06/13 08:59:50.813672] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/13 08:59:50.813788] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/13 08:59:50.813861] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/13 08:59:50.813922] ipam.mqt.maple.waffle.com (DEBUG): Jumping to to Get Discovery Data
[2018/06/13 08:59:50.814008] ipam.mqt.maple.waffle.com (DEBUG): We are jumping from step check_for_Lease_go_for_Data (#8), to Get Discovery Data (#13)
[2018/06/13 08:59:50.814087] ipam.mqt.maple.waffle.com (DEBUG): Executing step Get Discovery Data (1)
[2018/06/13 08:59:50.814777] ipam.mqt.maple.waffle.com (DEBUG): Sleeping for 0 seconds
[2018/06/13 08:59:50.815020] ipam.mqt.maple.waffle.com (DEBUG): Sending a 'GET' request within connection: protocol='https', host='yyy.yyy.181.22', port='443', path='/wapi/v2.6/record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmZzdGVzdGhvc3QuMTk4LjI1My4xNzYuMTEu:yyy.yyy.176.11/fstesthost.mqt.maple.waffle.com/mqt?_return_fields=discovered_data', headers={'Content-Type': 'application/json', 'Cookie': '[*********]', 'Accept': 'application/json', 'Authorization': '[*********]'}, body='(no body)'.
[2018/06/13 08:59:50.815146] ipam.mqt.maple.waffle.com (DEBUG): Request timeout is 30
[2018/06/13 08:59:50.886592] ipam.mqt.maple.waffle.com (DEBUG): Response status:200 reason:OK headers:{'date': 'Wed, 13 Jun 2018 13:59:50 GMT', 'connection': 'close', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store', 'transfer-encoding': 'chunked', 'set-cookie': 'ibapauth="client=API,group=web-api-only,ctime=1528898390,timeout=900,mtime=1528898390,ip=yyy.yyy.181.26,auth=LOCAL,user=fsapi,bmq6VyKBlPCZOMchaITLZ+LINNjFrvv3HSg"; httponly; Path=/', 'content-type': 'application/json'} data:{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmZzdGVzdGhvc3QuMTk4LjI1My4xNzYuMTEu:yyy.yyy.176.11/fstesthost.mqt.maple.waffle.com/mqt"}
[2018/06/13 08:59:50.886719] ipam.mqt.maple.waffle.com (DEBUG): The previous endpoint request returned status 200
[2018/06/13 08:59:50.886802] ipam.mqt.maple.waffle.com (DEBUG): Parsing the endpoint message {'BODY': '{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmZzdGVzdGhvc3QuMTk4LjI1My4xNzYuMTEu:yyy.yyy.176.11/fstesthost.mqt.maple.waffle.com/mqt"}', 'REASON': 'OK', 'RC': 200}
[2018/06/13 08:59:50.887045] ipam.mqt.maple.waffle.com (DEBUG): The parsing output is {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmZzdGVzdGhvc3QuMTk4LjI1My4xNzYuMTEu:yyy.yyy.176.11/fstesthost.mqt.maple.waffle.com/mqt'}
[2018/06/13 08:59:50.887147] ipam.mqt.maple.waffle.com (DEBUG): Executing step Copy discovery_data for other records (1)
[2018/06/13 08:59:50.887283] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/13 08:59:50.887348] ipam.mqt.maple.waffle.com (DEBUG): Invalid variable P:discovered_data
[2018/06/13 08:59:50.887443] ipam.mqt.maple.waffle.com (DEBUG): The namespace P contains the following data {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmZzdGVzdGhvc3QuMTk4LjI1My4xNzYuMTEu:yyy.yyy.176.11/fstesthost.mqt.maple.waffle.com/mqt'}
[2018/06/13 08:59:50.887575] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 0 < 0
[2018/06/13 08:59:50.887770] ipam.mqt.maple.waffle.com (WARNING): Template execution retry limit is reached.Event `{u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'yyy.yyy.176.11', u'mac': u'12:34:56:78:91:23', u'host': u'fstesthost.mqt.maple.waffle.com', u'extattrs': {u'NetReg SITC Username': {u'value': u'username@maple.waffle.com'}, u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'mqt'}, u'FS_Site': {u'value': u'Lab'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'500'}, u'NetReg Ownership': {u'value': u'Commerical'}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'176'}, u'NetReg Physical Host': {u'value': u'hyper.mqt.maple.waffle.com'}, u'Environment': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'maple System Center Protected (SSCPE)'}, u'FS_RemediateOnEvent': {u'value': u'true'}, u'NetReg MAC Address': {u'value': u'00:00:00:00:00:00'}, u'NetReg Cost Center': {u'value': u'85P532290S'}, u'FS_Sync': {u'value': u'true'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'3G2'}, u'NetReg Administrator': {u'value': u'tim'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmZzdGVzdGhvc3QuMTk4LjI1My4xNzYuMTEu:yyy.yyy.176.11/fstesthost.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}` is skipped