<commit_before>{{! -------------------------------------------------------------------------- }}
{{! Copyright 2002-2018, OpenNebula Project, OpenNebula Systems                }}
{{!                                                                            }}
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may    }}
{{! not use this file except in compliance with the License. You may obtain    }}
{{! a copy of the License at                                                   }}
{{!                                                                            }}
{{! http://www.apache.org/licenses/LICENSE-2.0                                 }}
{{!                                                                            }}
{{! Unless required by applicable law or agreed to in writing, software        }}
{{! distributed under the License is distributed on an "AS IS" BASIS,          }}
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   }}
{{! See the License for the specific language governing permissions and        }}
{{! limitations under the License.                                             }}
{{! -------------------------------------------------------------------------- }}
<form data-abide novalidate id="{{formPanelId}}Wizard" class="custom creation">
  <dl id="vnet_create_tabs" class="tabs sunstone-info-tabs text-center" data-tabs>
    <dd class="tabs-title is-active">
      <a href="#vnetCreateGeneralTab"> <i class="fas fa-globe"></i>
        <br>{{tr "General"}}</a>
    </dd>
    <dd class="tabs-title">
      <a href="#vnetCreateBridgeTab"> <i class="fas fa-cog"></i>
        <br>{{tr "Conf"}}</a>
    </dd>
    <dd class="tabs-title">
      <a href="#vnetCreateARTab">
        <i class="fas fa-align-justify"></i>
        <br>{{tr "Addresses"}}</a>
    </dd>
    <dd class="tabs-title">
      <a href="#vnetCreateSecurityTab">
        <i class="fas fa-shield-alt"></i>
        <br>{{tr "Security"}}</a>
    </dd>
    <dd class="tabs-title">
      <a href="#vnetCreateQoSTab">
        <i class="fas fa-wrench"></i>
        <br>{{tr "QoS"}}</a>
    </dd>
    <dd class="tabs-title">
      <a href="#vnetCreateContextTab">
        <i class="fas fa-folder"></i>
        <br>{{tr "Context"}}</a>
    </dd>
  </dl>
  <div id="vnet_create_tabs_content" class="tabs-content" data-tabs-content="vnet_create_tabs">
    <div class="tabs-panel is-active" id="vnetCreateGeneralTab">
      <div class="row">
        <div class="medium-6 columns">
          <label for="name" >
            {{tr "Name"}}
          </label>
          <input type="text" wizard_field="NAME" required name="name" id="name"/>
        </div>
        <div class="medium-6 columns" id="vnet_cluster_div" hidden>
          <label for="cluster">{{tr "Cluster"}}</label>
          <div id="vnet_cluster_id" name="vnet_cluster_id"></div>
        </div>
      </div>
      <div class="row">
        <div class="medium-6 columns">
          <label for="DESCRIPTION" >
            {{tr "Description"}}
          </label>
          <textarea type="text" wizard_field="DESCRIPTION" id="DESCRIPTION" name="DESCRIPTION"/>
        </div>
      </div>
    </div>
    <div class="tabs-panel" id="vnetCreateBridgeTab">
      <div class="row">
        <div class="medium-6 columns">
          <label for="bridge">
            {{tr "Bridge"}}
            <span class="tip">
              {{tr "Name of the physical bridge in the nodes to attach VM NICs"}}
            </span>
          </label>
          <input type="text" wizard_field="BRIDGE" name="bridge" id="bridge" />
        </div>
      </div>
      <div class="row">
        <div class="medium-6 columns">
          <label for="network_mode">
            {{tr "Network mode"}}
          </label>
          <select wizard_field="VN_MAD" name="network_mode" id="network_mode">
            <option value="dummy">{{tr "Bridged"}}</option>
            <option value="fw">{{tr "Bridged & Security Groups"}}</option>
            <option value="ebtables">{{tr "Bridged & ebtables VLAN"}}</option>
            <option value="802.1Q">{{tr "802.1Q"}}</option>
            <option value="vxlan">{{tr "VXLAN"}}</option>
            <option value="ovswitch">{{tr "Open vSwitch"}}</option>
            <option value="ovswitch_vxlan">{{tr "Open vSwitch - VXLAN"}}</option>
            <option value="vcenter">{{tr "vCenter"}}</option>
            <option value="custom">{{tr "Custom"}}</option>
          </select>
        </div>
        <div class="large-3 medium-6 columns mode_param vcenter custom" id="div_vn_mad">
          <label for="vn_mad">
            {{tr "Network Driver (VN_MAD)"}}
          </label>
          <input type="text" wizard_field="VN_MAD" name="vn_mad" id="vn_mad" />
        </div>
        <div class="large-12 columns">
          <div class="network_mode_description" value="dummy">
            {{tr "Bridged, virtual machine traffic is directly bridged through an existing Linux bridge in the nodes. No traffic filtering is made."}}
          </div>
          <div class="network_mode_description" value="fw">
            {{tr "Bridged & Security Groups, bridged network with Security Group rules."}}
          </div>
          <div class="network_mode_description" value="ebtables">
            {{tr "Bridged & ebtables VLAN, restrict network access through ebtables rules. Security Group rules are applied."}}
          </div>
          <div class="network_mode_description" value="802.1Q">
            {{tr "802.1Q, restrict network access through VLAN tagging. Security Group rules are applied."}}
          </div>
          <div class="network_mode_description" value="vxlan">
            {{tr "VXLAN, creates a L2 network overlay, each VLAN has associated a multicast address in the 172.16.58.3/8 range. Security Group rules are applied."}}
          </div>
          <div class="network_mode_description" value="ovswitch">
            {{tr "Open vSwitch, restrict network access with Open vSwitch Virtual Switch. Security Groups are not applied."}}
          </div>
          <div class="network_mode_description" value="ovswitch_vxlan">
            {{tr "Open vSwitch on VXLAN L2 network overlay. Security Groups are not applied."}}
          </div>
          <div class="network_mode_description" value="vcenter">
            {{tr "vSphere standard switches or distributed switches with port groups. Security Groups are not applied."}}
          </div>
          <div class="network_mode_description" value="custom">
            {{tr "Custom, use a custom virtual network driver."}}
          </div>
        </div>
      </div>
      <br>
      <div class="row">
        <div class="large-6 columns mode_param ebtables 8021Q vxlan fw ovswitch ovswitch_vxlan custom">
          <label for="mac_spoofing">
            <input type="checkbox" wizard_field="FILTER_MAC_SPOOFING" value="YES" name="mac_spoofing" id="mac_spoofing" />
            {{tr "MAC spoofing filter"}}
          </label>
        </div>
      </div>
      <div class="row">
        <div class="large-6 columns mode_param ebtables 8021Q vxlan fw ovswitch ovswitch_vxlan custom">
          <label for="ip_spoofing">
            <input type="checkbox" wizard_field="FILTER_IP_SPOOFING" value="YES" name="ip_spoofing" id="ip_spoofing" />
            {{tr "IP spoofing filter"}}
            </span>
          </label>
        </div>
      </div>
      <div class="row">
        <div class="medium-3 columns left mode_param 8021Q vxlan ovswitch ovswitch_vxlan vcenter custom">
          <label>
            {{tr "VLAN ID"}}
            <select id="automatic_vlan_id" wizard_field="AUTOMATIC_VLAN_ID">
              <option value="YES">{{tr "Automatic VLAN ID"}}</option>
              <option value="NO">{{tr "No VLAN network"}}</option>
              <option value="">{{tr "Manual VLAN ID"}}</option>
            </select>
            <input id="manual_id" type="number" wizard_field="VLAN_ID"/>
          </label>
        </div>
        <div class="medium-3 columns left mode_param 8021Q vxlan ovswitch ovswitch_vxlan custom">
          <label for="phydev">
            {{tr "Physical device"}}
            <span class="tip">
              {{tr "Node NIC to send/receive virtual network traffic"}}
            </span>
          </label>
          <input type="text" wizard_field="PHYDEV" name="phydev" id="phydev" />
        </div>
        <div class="medium-3 columns left mode_param vcenter">
          <label for="phydev">
            {{tr "Physical device"}}<commit_msg>F #2045: PHYDEV support for dummy, fw, ebtables in Sunstone <commit_after>{{! -------------------------------------------------------------------------- }}
{{! Copyright 2002-2018, OpenNebula Project, OpenNebula Systems                }}
{{!                                                                            }}
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may    }}
{{! not use this file except in compliance with the License. You may obtain    }}
{{! a copy of the License at                                                   }}
{{!                                                                            }}
{{! http://www.apache.org/licenses/LICENSE-2.0                                 }}
{{!                                                                            }}
{{! Unless required by applicable law or agreed to in writing, software        }}
{{! distributed under the License is distributed on an "AS IS" BASIS,          }}
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   }}
{{! See the License for the specific language governing permissions and        }}
{{! limitations under the License.                                             }}
{{! -------------------------------------------------------------------------- }}
<form data-abide novalidate id="{{formPanelId}}Wizard" class="custom creation">
  <dl id="vnet_create_tabs" class="tabs sunstone-info-tabs text-center" data-tabs>
    <dd class="tabs-title is-active">
      <a href="#vnetCreateGeneralTab"> <i class="fas fa-globe"></i>
        <br>{{tr "General"}}</a>
    </dd>
    <dd class="tabs-title">
      <a href="#vnetCreateBridgeTab"> <i class="fas fa-cog"></i>
        <br>{{tr "Conf"}}</a>
    </dd>
    <dd class="tabs-title">
      <a href="#vnetCreateARTab">
        <i class="fas fa-align-justify"></i>
        <br>{{tr "Addresses"}}</a>
    </dd>
    <dd class="tabs-title">
      <a href="#vnetCreateSecurityTab">
        <i class="fas fa-shield-alt"></i>
        <br>{{tr "Security"}}</a>
    </dd>
    <dd class="tabs-title">
      <a href="#vnetCreateQoSTab">
        <i class="fas fa-wrench"></i>
        <br>{{tr "QoS"}}</a>
    </dd>
    <dd class="tabs-title">
      <a href="#vnetCreateContextTab">
        <i class="fas fa-folder"></i>
        <br>{{tr "Context"}}</a>
    </dd>
  </dl>
  <div id="vnet_create_tabs_content" class="tabs-content" data-tabs-content="vnet_create_tabs">
    <div class="tabs-panel is-active" id="vnetCreateGeneralTab">
      <div class="row">
        <div class="medium-6 columns">
          <label for="name" >
            {{tr "Name"}}
          </label>
          <input type="text" wizard_field="NAME" required name="name" id="name"/>
        </div>
        <div class="medium-6 columns" id="vnet_cluster_div" hidden>
          <label for="cluster">{{tr "Cluster"}}</label>
          <div id="vnet_cluster_id" name="vnet_cluster_id"></div>
        </div>
      </div>
      <div class="row">
        <div class="medium-6 columns">
          <label for="DESCRIPTION" >
            {{tr "Description"}}
          </label>
          <textarea type="text" wizard_field="DESCRIPTION" id="DESCRIPTION" name="DESCRIPTION"/>
        </div>
      </div>
    </div>
    <div class="tabs-panel" id="vnetCreateBridgeTab">
      <div class="row">
        <div class="medium-6 columns">
          <label for="bridge">
            {{tr "Bridge"}}
            <span class="tip">
              {{tr "Name of the physical bridge in the nodes to attach VM NICs"}}
            </span>
          </label>
          <input type="text" wizard_field="BRIDGE" name="bridge" id="bridge" />
        </div>
      </div>
      <div class="row">
        <div class="medium-6 columns">
          <label for="network_mode">
            {{tr "Network mode"}}
          </label>
          <select wizard_field="VN_MAD" name="network_mode" id="network_mode">
            <option value="dummy">{{tr "Bridged"}}</option>
            <option value="fw">{{tr "Bridged & Security Groups"}}</option>
            <option value="ebtables">{{tr "Bridged & ebtables VLAN"}}</option>
            <option value="802.1Q">{{tr "802.1Q"}}</option>
            <option value="vxlan">{{tr "VXLAN"}}</option>
            <option value="ovswitch">{{tr "Open vSwitch"}}</option>
            <option value="ovswitch_vxlan">{{tr "Open vSwitch - VXLAN"}}</option>
            <option value="vcenter">{{tr "vCenter"}}</option>
            <option value="custom">{{tr "Custom"}}</option>
          </select>
        </div>
        <div class="large-3 medium-6 columns mode_param vcenter custom" id="div_vn_mad">
          <label for="vn_mad">
            {{tr "Network Driver (VN_MAD)"}}
          </label>
          <input type="text" wizard_field="VN_MAD" name="vn_mad" id="vn_mad" />
        </div>
        <div class="large-12 columns">
          <div class="network_mode_description" value="dummy">
            {{tr "Bridged, virtual machine traffic is directly bridged through an existing Linux bridge in the nodes. No traffic filtering is made."}}
          </div>
          <div class="network_mode_description" value="fw">
            {{tr "Bridged & Security Groups, bridged network with Security Group rules."}}
          </div>
          <div class="network_mode_description" value="ebtables">
            {{tr "Bridged & ebtables VLAN, restrict network access through ebtables rules. Security Group rules are applied."}}
          </div>
          <div class="network_mode_description" value="802.1Q">
            {{tr "802.1Q, restrict network access through VLAN tagging. Security Group rules are applied."}}
          </div>
          <div class="network_mode_description" value="vxlan">
            {{tr "VXLAN, creates a L2 network overlay, each VLAN has associated a multicast address in the 172.16.58.3/8 range. Security Group rules are applied."}}
          </div>
          <div class="network_mode_description" value="ovswitch">
            {{tr "Open vSwitch, restrict network access with Open vSwitch Virtual Switch. Security Groups are not applied."}}
          </div>
          <div class="network_mode_description" value="ovswitch_vxlan">
            {{tr "Open vSwitch on VXLAN L2 network overlay. Security Groups are not applied."}}
          </div>
          <div class="network_mode_description" value="vcenter">
            {{tr "vSphere standard switches or distributed switches with port groups. Security Groups are not applied."}}
          </div>
          <div class="network_mode_description" value="custom">
            {{tr "Custom, use a custom virtual network driver."}}
          </div>
        </div>
      </div>
      <br>
      <div class="row">
        <div class="large-6 columns mode_param ebtables 8021Q vxlan fw ovswitch ovswitch_vxlan custom">
          <label for="mac_spoofing">
            <input type="checkbox" wizard_field="FILTER_MAC_SPOOFING" value="YES" name="mac_spoofing" id="mac_spoofing" />
            {{tr "MAC spoofing filter"}}
          </label>
        </div>
      </div>
      <div class="row">
        <div class="large-6 columns mode_param ebtables 8021Q vxlan fw ovswitch ovswitch_vxlan custom">
          <label for="ip_spoofing">
            <input type="checkbox" wizard_field="FILTER_IP_SPOOFING" value="YES" name="ip_spoofing" id="ip_spoofing" />
            {{tr "IP spoofing filter"}}
            </span>
          </label>
        </div>
      </div>
      <div class="row">
        <div class="medium-3 columns left mode_param 8021Q vxlan ovswitch ovswitch_vxlan vcenter custom">
          <label>
            {{tr "VLAN ID"}}
            <select id="automatic_vlan_id" wizard_field="AUTOMATIC_VLAN_ID">
              <option value="YES">{{tr "Automatic VLAN ID"}}</option>
              <option value="NO">{{tr "No VLAN network"}}</option>
              <option value="">{{tr "Manual VLAN ID"}}</option>
            </select>
            <input id="manual_id" type="number" wizard_field="VLAN_ID"/>
          </label>
        </div>
        <div class="medium-3 columns left mode_param dummy fw ebtables 8021Q vxlan ovswitch ovswitch_vxlan custom">
          <label for="phydev">
            {{tr "Physical device"}}
            <span class="tip">
              {{tr "Node NIC to send/receive virtual network traffic"}}
            </span>
          </label>
          <input type="text" wizard_field="PHYDEV" name="phydev" id="phydev" />
        </div>
        <div class="medium-3 columns left mode_param vcenter">
          <label for="phydev">
            {{tr "Physical device"}}
{'fraction_non_alphanumeric': 0.16300355622923104, 'fraction_numerical': 0.008278435259138343, 'mean_word_length': 2.0286016949152543, 'pattern_counts': {'":': 0, '<': 339, '<?xml version=': 0, '>': 339, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6648260', 'n_tokens_mistral': 5037, 'n_tokens_neox': 4804, 'n_words': 1296}