CMDB.Synch.Augment.ComputerSystem TPL

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

CMDB.Synch.Augment.ComputerSystem TPL

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

tpl 1.5 module CMDB.Extension.ComputerSystem_Augment;

from CDMB.Host_ComputerSystem import Host_Computer 2.0;

syncmapping ComputerSystem_Augment 1.0
"""
Add or more attributes to BMC_ComputerSystem CI
"""

overview
tags CMDB, Extension;
end overview

mapping from Host_ComputerSystem.host as host
// No additional structure. Just modifying the existing CS pattern
end mapping;

body

computersystem := Host_ComputerSystem.computersystem;
// The following fields are set by a custom pattern where SomeFieldCreatedInADDM is assigned a value

computersystem.SomeFieldCreatedInADDM := host.SomeFieldCreatedInADDM;
computersystem.ParentCITag := host.ParentCITag;

end body;

end syncmapping;
The Blackholesurfer. My surfboard has teeth.

Post Reply