'get_end_state'

def get_end_state(self):

    if self.intf_info:
        end_info = self.get_interface_dict(self.interface)
        if end_info:
            self.end_state['interface'] = end_info['ifName']
            if is_admin_state_enable(self.intf_type):
                self.end_state['admin_state'] = end_info['ifAdminStatus']
            self.end_state['description'] = end_info['ifDescr']
            if is_portswitch_enalbe(self.intf_type):
                if (end_info['isL2SwitchPort'] == 'true'):
                    self.end_state['mode'] = 'layer2'
                else:
                    self.end_state['mode'] = 'layer3'
