'Get the default entry index.
This module performs the same action as client side boottool.py
get_default() method, but with a better name IMHO.
:return: an integer with the the default entry.'

def get_default_index(self):

    default_index = self._run_grubby_get_output(['--default-index'])
    if ((default_index is not None) and default_index):
        default_index = int(default_index)
    return default_index
