'Init function'

def __init__(self, **kwargs):

    argument_spec = kwargs['argument_spec']
    self.spec = argument_spec
    self.module = AnsibleModule(argument_spec=self.spec, supports_check_mode=True)
    self.state = self.module.params['state']
    self.trap_time_stamp = (self.module.params['trap_time_stamp'] or None)
    self.trap_buff_enable = self.module.params['trap_buff_enable']
    self.trap_buff_size = (self.module.params['trap_buff_size'] or None)
    self.module_name = (self.module.params['module_name'] or None)
    self.channel_id = (self.module.params['channel_id'] or None)
    self.trap_enable = self.module.params['trap_enable']
    self.trap_level = (self.module.params['trap_level'] or None)
    self.cur_global_cfg = dict()
    self.cur_source_cfg = dict()
    self.changed = False
    self.updates_cmd = list()
    self.results = dict()
    self.proposed = dict()
    self.existing = dict()
    self.end_state = dict()
