From 9352775a1c518b6c0c4ff287257ea20b540b78fd Mon Sep 17 00:00:00 2001 From: aaron <462826@qq.com> Date: Mon, 3 Aug 2020 16:02:12 +0800 Subject: [PATCH] fix a issue that missing the additional fields defined in test.yaml than in default.xml --- data/custom/ip/private.yaml | 19 +++++++++++++++++++ data/custom/test/number/v1.yaml | 14 ++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 data/custom/ip/private.yaml create mode 100644 data/custom/test/number/v1.yaml diff --git a/data/custom/ip/private.yaml b/data/custom/ip/private.yaml new file mode 100644 index 0000000..b218106 --- /dev/null +++ b/data/custom/ip/private.yaml @@ -0,0 +1,19 @@ +title: 私有IP +desc: 引用系统IP定义 +author: zentao +version: 1.0 + +field: privateIP +instances: + + - instance: all + fields: + - field: part1 + from: system.ip.v1.yaml + use: privateA, privateB, privateC + prefix: "" + postfix: "/" + + - field: part2 + from: custom.test.number.v1.yaml + use: netmask \ No newline at end of file diff --git a/data/custom/test/number/v1.yaml b/data/custom/test/number/v1.yaml new file mode 100644 index 0000000..ce13628 --- /dev/null +++ b/data/custom/test/number/v1.yaml @@ -0,0 +1,14 @@ +title: number +desc: 数字分组 +author: wwccss +version: 1.0 + +field: number +note: 数值类型数据 +prefix: "'" +postfix: "'" +ranges: + small: 1-9 + medium: 101-199 + large: 10001-99999 + netmask: 8,16,24 \ No newline at end of file -- GitLab