CMDB.Synch.Augment.Database TPL

Post Reply
hudatolah
Site Admin
Posts: 152
Joined: Thu Apr 04, 2013 8:10 pm
Are You a Headhunter?: Affirmative
Surfer?: Yes

CMDB.Synch.Augment.Database TPL

Post by hudatolah » Thu Oct 03, 2019 8:18 am

tpl 1.5 module CMDB.Extension.Database_Augment_CTI;


metadata
origin := 'BlackholeSurfer';
tree_path := 'BlackholeSurfer','CMDB sync','Database';
end metadata;

from CMDB.Database import Database 2.3;

syncmapping Database_Augment 2.0
"""
Describe what this does for those that will need
it and what it depends on.
"""

overview
tags CMDB, Extension;
end overview;

mapping from Databas.database_node as database_node
end mapping

body

if database_node.type = "Oracle Database" or database_node.type = "SQL Server Database" then
database_ci := Database.database_ci;
database_ci.SerialNumber := "%database_node.serial%";
end if;

end body

end syncmapping
The Blackholesurfer. My surfboard has teeth.

Post Reply