def getall(self):
        """Returns a dict object of all VRFs in the running-config

        Returns:
            A dict object of VRF attributes

        """
        vrfs_re = re.compile(r'(?<=^vrf definition\s)(\w+)', re.M)

        response = dict()
        for vrf in vrfs_re.findall(self.config):
            response[vrf] = self.get(vrf)
        return response
def getall ( self ) : vrfs_re = re . compile ( r'(?<=^vrf definition\s)(\w+)' , re . M ) response = dict ( ) for vrf in vrfs_re . findall ( self . config ) : response [ vrf ] = self . get ( vrf ) return response
Returns a dict object of all VRFs in the running-config

        Returns:
            A dict object of VRF attributes