'Stp module init'

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.cur_cfg = dict()
    self.stp_cfg = None
    self.interface_stp_cfg = None
    self.state = (self.module.params['state'] or None)
    self.stp_mode = (self.module.params['stp_mode'] or None)
    self.stp_enable = (self.module.params['stp_enable'] or None)
    self.stp_converge = (self.module.params['stp_converge'] or None)
    self.interface = (self.module.params['interface'] or None)
    self.edged_port = (self.module.params['edged_port'] or None)
    self.bpdu_filter = (self.module.params['bpdu_filter'] or None)
    self.cost = (self.module.params['cost'] or None)
    self.bpdu_protection = (self.module.params['bpdu_protection'] or None)
    self.tc_protection = (self.module.params['tc_protection'] or None)
    self.tc_protection_interval = (self.module.params['tc_protection_interval'] or None)
    self.tc_protection_threshold = (self.module.params['tc_protection_threshold'] or None)
    self.root_protection = (self.module.params['root_protection'] or None)
    self.loop_protection = (self.module.params['loop_protection'] or None)
    self.changed = False
    self.updates_cmd = list()
    self.results = dict()
    self.proposed = dict()
    self.existing = dict()
    self.end_state = dict()
