'Add a dgroup rule, returns rule_id needed to remove it
Parameters
match_args :
config.Match arguments
rule_args :
config.Rule arguments
min_priorty :
If the rule is added with minimum prioriry (last) (default: False)'

def cmd_add_rule(self, match_args, rule_args, min_priorty=False):

    if (not self.dgroups):
        logger.warning('No    dgroups    created')
        return
    match = Match(**match_args)
    rule = Rule(match, **rule_args)
    return self.dgroups.add_rule(rule, min_priorty)
