'Check all input params'

def check_params(self):

    if (not self.interface):
        self.module.fail_json(msg='Error:    Interface    name    cannot    be    empty.')
    if (self.interface and (self.interface != 'all')):
        if (not self.if_type):
            self.module.fail_json(msg=('Error:    Interface    name    of    %s    is    error.' % self.interface))
