'Read information and transform it
The values that are returned by BIG-IP in the f5-sdk can have encoding
attached to them as well as be completely missing in some cases.
Therefore, this method will transform the data from the BIG-IP into a
format that is more easily consumable by the rest of the class and the
parameters that are supported by the module.'

def read(self):

    p = dict()
    r = self.api.tm.sys.sshd.load()
    if hasattr(r, 'allow'):
        p['allow'] = set([str(x) for x in r.allow])
    if hasattr(r, 'banner'):
        p['banner'] = str(r.banner)
    if hasattr(r, 'bannerText'):
        p['banner_text'] = str(r.bannerText)
    if hasattr(r, 'inactivityTimeout'):
        p['inactivity_timeout'] = str(r.inactivityTimeout)
    if hasattr(r, 'logLevel'):
        p['log_level'] = str(r.logLevel)
    if hasattr(r, 'login'):
        p['login'] = str(r.login)
    if hasattr(r, 'port'):
        p['port'] = int(r.port)
    return p
