登录
ZH
games/xencenter-xenadmin-xcp-jumphp / forms / NewNetworkForm.form.yaml · commit fb1b7c9
# Pool > New Network: an external network (a VLAN on a NIC of every server), a private one, or a bond of NICs (src/Form/NewNetworkForm.php)form:  title: 'New Network'  dialog: true  width: 600  fontSize: 13  accent: '#0078d7'  layout: column  padding: 20  gap: 10  children:    - type: row      gap: 12      children:        - {class: App\Gui\IconBox, kind: network, width: 32, height: 32}        - type: column          gap: 0          children:            - {type: label, text: 'New Network', style: subtitle}            - {type: label, id: where, text: '', style: muted, size: 12}    - type: grid      gap: 8      children:        - {type: label, text: 'Type:', span: 4}        - {type: combobox, id: kind, items: ['External network', 'Single-server private network', 'Bonded network'], selected: 0, span: 8, events: {change: onKindChange}}        - {type: label, text: 'Name:', span: 4}        - {type: textbox, id: name, span: 8}        - {type: label, text: 'Description:', span: 4}        - {type: textbox, id: description, span: 8}        - {type: label, text: 'MTU:', span: 4}        - {type: textbox, id: mtu, text: '1500', span: 8}    - type: panel      id: externalPanel      title: 'Network card and VLAN'      padding: 10      gap: 8      children:        - type: grid          gap: 8          children:            - {type: label, text: 'NIC:', span: 4}            - {type: combobox, id: nic, items: [], span: 8}            - {type: label, text: 'VLAN:', span: 4}            - {type: textbox, id: vlan, placeholder: '0 (untagged) to 4094', span: 8}        - {type: label, text: 'The VLAN is made on this NIC of every server of the pool.', style: muted, size: 12}    - type: panel      id: privatePanel      title: 'Private network'      padding: 10      children:        - {type: label, text: 'A network with no NIC: the VMs of one server talk to each other only.', style: muted, size: 12, wrap: true}    - type: panel      id: bondPanel      title: 'Bond'      padding: 10      gap: 8      children:        - {type: label, text: 'NICs to bond (two or more, on every server):'}        - {type: row, id: bondNics, gap: 14, children: []}        - type: grid          gap: 8          children:            - {type: label, text: 'Mode:', span: 4}            - {type: combobox, id: bondMode, items: ['Active-active (balance-slb)', 'Active-passive (active-backup)', 'LACP (lacp)'], selected: 0, span: 8}    - {type: checkbox, id: auto, text: 'Add this network to new VMs automatically', checked: true}    - {type: label, id: error, text: '', color: '#d1242f', wrap: true}    - type: row      gap: 8      children:        - {type: spacer}        - {type: button, id: create, text: 'Create', style: primary, default: true, events: {click: onCreateClick}}        - {type: button, id: cancel, text: Cancel, cancel: true, events: {click: onCancelClick}}