'data init'

def data_init(self):

    if self.l2_sub_interface:
        self.l2_sub_interface = self.l2_sub_interface.replace('    ', '').upper()
    if (self.encapsulation and self.l2_sub_interface):
        self.l2sub_info = self.get_l2_sub_intf_dict(self.l2_sub_interface)
    if self.bridge_domain_id:
        if (self.bind_vlan_id or self.l2_sub_interface):
            self.vap_info = self.get_bd_vap_dict()
