# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## MikroTik.RouterOS.get_config
##----------------------------------------------------------------------
## Copyright (C) 2007-2009 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
"""
"""
## NOC modules
from noc.sa.script import Script as NOCScript
from noc.sa.interfaces import IGetConfig
##
## MikroTik.RouterOS.get_config
##
class Script(NOCScript):
    name="MikroTik.RouterOS.get_config"
    implements=[IGetConfig]
    def execute(self):
        config=self.cli("export")
        return self.cleaned_config(config)
    
