text: """ Cisco_IOS_XR_linux_os_reboot_history_oper 
  
  This module contains a collection of YANG definitions
  for Cisco IOS\-XR linux\-os\-reboot\-history package operational data.
  
  This module contains definitions
  for the following management objects\:
    reboot\-history\: Reboot History information
  
  Copyright (c) 2013\-2018 by Cisco Systems, Inc.
  All rights reserved.
  
  """
  import sys
  from collections import OrderedDict
  
  from ydk.types import Entity as _Entity_
  from ydk.types import EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64
  from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64
  from ydk.filters import YFilter
  from ydk.errors import YError, YModelError
  from ydk.errors.error_handler import handle_type_error as _handle_type_error
  
  
  
  
  class RebootHistory(_Entity_):
      """
      Reboot History information
      
      .. attribute:: node
      
      	Node ID
      	**type**\: list of  		 :py:class:`Node <ydk.models.cisco_ios_xr.Cisco_IOS_XR_linux_os_reboot_history_oper.RebootHistory.Node>`
      
      	**config**\: False
      
      
  
      """
  
      _prefix = 'linux-os-reboot-history-oper'
      _revision = '2015-11-09'
  
      def __init__(self):
          if sys.version_info > (3,):
              super().__init__()
          else:
              super(RebootHistory, self).__init__()
          self._top_entity = None
  
          self.yang_name = "reboot-history"
          self.yang_parent_name = "Cisco-IOS-XR-linux-os-reboot-history-oper"
          self.is_top_level_class = True
          self.has_list_ancestor = False
          self.ylist_key_names = []
          self._child_classes = OrderedDict([("node", ("node", RebootHistory.Node))])
          self._leafs = OrderedDict()
  
          self.node = YList(self)
          self._segment_path = lambda: "Cisco-IOS-XR-linux-os-reboot-history-oper:reboot-history"
          self._is_frozen = True
  
      def __setattr__(self, name, value):
          self._perform_setattr(RebootHistory, [], name, value)
  
  
      class Node(_Entity_):
          """
          Node ID
          
          .. attribute:: node_name  (key)
          
          	Node name
          	**type**\: str
          
          	**pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+)
          
          	**config**\: False
          
          .. attribute:: reboot_history
          
          	Last Reboots
          	**type**\: list of  		 :py:class:`RebootHistory_ <ydk.models.cisco_ios_xr.Cisco_IOS_XR_linux_os_reboot_history_oper.RebootHistory.Node.RebootHistory_>`
          
          	**config**\: False
          
          
  
          """
  
          _prefix = 'linux-os-reboot-history-oper'
          _revision = '2015-11-09'
  
          def __init__(self):
              if sys.version_info > (3,):
                  super().__init__()
              else:
                  super(RebootHistory.Node, self).__init__()
  
              self.yang_name = "node"
              self.yang_parent_name = "reboot-history"
              self.is_top_level_class = False
              self.has_list_ancestor = False
              self.ylist_key_names = ['node_name']
              self._child_classes = OrderedDict([("reboot-history", ("reboot_history", RebootHistory.Node.RebootHistory_))])
              self._leafs = OrderedDict([
                  ('node_name', (YLeaf(YType.str, 'node-name'), ['str'])),
              ])
              self.node_name = None
  
              self.reboot_history = YList(self)
              self._segment_path = lambda: "node" + "[node-name='" + str(self.node_name) + "']"
              self._absolute_path = lambda: "Cisco-IOS-XR-linux-os-reboot-history-oper:reboot-history/%s" % self._segment_path()
              self._is_frozen = True
  
          def __setattr__(self, name, value):
              self._perform_setattr(RebootHistory.Node, ['node_name'], name, value)
  
  
          class RebootHistory_(_Entity_):
              """
              Last Reboots
              
              .. attribute:: no
              
              	Number count
              	**type**\: int
              
              	**range:** 0..4294967295
              
              	**config**\: False
              
              .. attribute:: time
              
              	Time of reboot
              	**type**\: str
              
              	**config**\: False
              
              .. attribute:: cause_code
              
              	Cause code for reboot
              	**type**\: int
              
              	**range:** 0..4294967295
              
              	**config**\: False
              
              .. attribute:: reason
              
              	Reason for reboot
              	**type**\: str
              
              	**config**\: False
              
              
  
              """
  
              _prefix = 'linux-os-reboot-history-oper'
              _revision = '2015-11-09'
  
              def __init__(self):
                  if sys.version_info > (3,):
                      super().__init__()
                  else:
                      super(RebootHistory.Node.RebootHistory_, self).__init__()
  
                  self.yang_name = "reboot-history"
                  self.yang_parent_name = "node"
                  self.is_top_level_class = False
                  self.has_list_ancestor = True
                  self.ylist_key_names = []
                  self._child_classes = OrderedDict([])
                  self._leafs = OrderedDict([
                      ('no', (YLeaf(YType.uint32, 'no'), ['int'])),
                      ('time', (YLeaf(YType.str, 'time'), ['str'])),
                      ('cause_code', (YLeaf(YType.uint32, 'cause-code'), ['int'])),
                      ('reason', (YLeaf(YType.str, 'reason'), ['str'])),
                  ])
                  self.no = None
                  self.time = None
                  self.cause_code = None
                  self.reason = None
                  self._segment_path = lambda: "reboot-history"
                  self._is_frozen = True
  
              def __setattr__(self, name, value):
                  self._perform_setattr(RebootHistory.Node.RebootHistory_, ['no', 'time', 'cause_code', 'reason'], name, value)
  
              @staticmethod
              def _meta_info():
                  from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_linux_os_reboot_history_oper as meta
                  return meta._meta_table['RebootHistory.Node.RebootHistory_']['meta_info']
  
          @staticmethod
          def _meta_info():
              from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_linux_os_reboot_history_oper as meta
              return meta._meta_table['RebootHistory.Node']['meta_info']
  
      def clone_ptr(self):
          self._top_entity = RebootHistory()
          return self._top_entity
  
      @staticmethod
      def _meta_info():
          from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_linux_os_reboot_history_oper as meta
          return meta._meta_table['RebootHistory']['meta_info']
  
  
  