'Get the value for the key passed.
:param data: NVP to manipulate
:param keyname: Key name
:returns: value for the NVP'

def get_nvp_value(self, data, keyname):

    try:
        start = data.index(keyname)
        start = (start + len(keyname))
        temp = data[start:]
        end = temp.index('\n')
        return temp[:end].lstrip('=    ')
    except ValueError as e:
        msg = (_('Error    while    getting    nvp    value:    %s.') % six.text_type(e))
        LOG.error(msg)
        raise exception.BrocadeZoningHttpException(reason=msg)
