提交 eaf248f8 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

change to union multiple from, not combine them as sub-fields

上级 cf8fae32
...@@ -32,6 +32,12 @@ fields: ...@@ -32,6 +32,12 @@ fields:
prefix: "[" prefix: "["
postfix: "]\t" postfix: "]\t"
- field: field_union_instant
from: jenkins.ip.private.yaml # 內置instances使用了多个use-from。
use: privateB_union_privateC
prefix: "["
postfix: "]\t"
- field: field_from_muti - field: field_from_muti
prefix: "[" prefix: "["
postfix: "]\t" postfix: "]\t"
......
...@@ -15,6 +15,23 @@ instances: ...@@ -15,6 +15,23 @@ instances:
prefix: "" prefix: ""
postfix: "/" postfix: "/"
- field: part2
from: jenkins.number.v1.yaml
use: netmask
- instance: privateB_union_privateC
note: 使用多个use-from引用原始IP地址定义
fields:
- field: part1
froms:
- from: ip.v1.yaml
use: privateB{2}
- from: ip.v1.yaml
use: privateC{3}
prefix: ""
postfix: "/"
- field: part2 - field: part2
from: jenkins.number.v1.yaml from: jenkins.number.v1.yaml
use: netmask use: netmask
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册