# Path: netjsonconfig/backends/openwrt/schema.py



from ipaddress import ip_network
from ..schema import schema
from .base import OpenWrtConverter



class Rules(OpenWrtConverter):
    netjson_key = 'ip_rules'
    intermediate_key = 'network'
    _uci_types = ['rule', 'rule6']

# Path: netjsonconfig/backends/openwrt/schema.py



# Path: netjsonconfig/backends/openwrt/converters/rules.py
from ipaddress import ip_network
from ..schema import schema
from .base import OpenWrtConverter




class Rules(OpenWrtConverter):
    netjson_key = 'ip_rules'
    intermediate_key = 'network'
    _uci_types = ['rule', 'rule6']

    _schema = schema['properties']['ip_rules']['items']