@staticmethod
    def add_rules(xml, rules):
        if not rules:
            return 
        for rule in rules:
            rule_elem = xml.add_element(xml.namespaces['plos'] % '{%s}fw_rule')
            rule_elem.set('protocol', rule.get('protocol'))
            rule_elem.set('port_range', rule.get('port_range'))
            rule_elem.set('cidr_ip', rule.get('cidr_ip'))
            if rule.get('icmp_type_code'):
                rule_elem.set('icmp_type_code', rule.get('icmp_type_code'))
dataset/ETHPy150Open fp7-ofelia/ocf/vt_manager/src/python/vt_manager/communication/sfa/rspecs/elements/versions/plosv1FWRule.py/PLOSv1FWRule.add_rules/swapped operands of `%`