metadata文件:
{
    "name": "config_priority",  //暂时没用到
    "relation": [
        {
            "deviceModel": "sw",   // 设备名
            "version": "10.x",     // 设备版本
            "rules": [
                {
                    "ruleName": "sw_10.x",    //规则名
                    "path": "sw_10.x_rule.conf"
                }
            ]
        },
        {
            "deviceModel": "ac",
            "version": "11.x",
            "rules": [
                {
                    "ruleName": "ac_11.x",
                    "path": "ac_11.x_rule.conf"
                }
            ]
        }
    ]
}

conf文件:
@a表示参数占位符
@l表示行占位符
比如 
    vlan 100 200 asdjl
    vlan @a 能匹配到 vlan 100
    vlan @l 能匹配到 vlan 100 200 asdjl

层级用空格来表示
排在前面的优先级越高

!
vlan @a
 name @l
!
interface @l
 no switchport
 ip address @l
!
wlan-config @a @l
 nas-id @a
!
ap-group @a
 interface-mapping @a @a ap-wlan-id @a
!