aboutsummaryrefslogtreecommitdiffstats
path: root/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/welcome.jsp
blob: 8c9c39ed82c9a6ef9976ce12b8a681405820978a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<script src="app/vid/external/multiselect/angular-bootstrap-multiselect.min.js"></script>
<script src="app/vid/external/upload-file/ng-file-upload.min.js"></script>
<script src="app/vid/external/angular-feature-flags/featureFlags.min.js"></script>
<script src="app/vid/external/angular-moment/moment.min.js"></script>
<script src="app/vid/external/angular-moment/angular-moment.min.js"></script>
<%@ page import="org.onap.vid.properties.Features"%>
<%@ page import="org.onap.vid.properties.VidProperties" %>
<%@ page import="org.onap.portalsdk.core.util.SystemProperties" %>
<div>
     <h1 class="heading1">ONAP</h1>
     <br>
     <h1 class="heading1"><u>Welcome to VID</u></h1>
     <br>
   The Virtual Infrastructure Deployment (VID) application allows infrastructure service deployment operators 
   to instantiate service instances and their constituent parts for Distributed service models required by the 
   ONAP service operations that manage them, such as Mobility Network Services, etc. 
   The models are defined by ONAP component SDC. The service 
   deployment operator selects the service operations owner and model that they wish to instantiate. After 
   entry of appropriate data, the operator instructs VID to direct another ONAP component, MSO, to instantiate 
   the selected service model. Once the service instance has been instantiated, the service operator can instruct 
   VID to direct MSO to instantiate the service instance's component VNFs, VF Modules, Networks and Volume Groups. 
   The VID user can also search for, and display, existing service instances and direct the instantiation of 
   subsequent instance components.
     <br><br>
    <%
        String contactUsUrl = SystemProperties.getProperty(VidProperties.HOMEPAGE_CONTACT_US_URL);
    %>
  
    <h1 class="heading1"><a href="<%=contactUsUrl%>" target="_top">Contact Us</a></h1>
    <a href="<%=contactUsUrl%>" target="_top">Please click here to contact us.</a>
    <%
        if (Features.FLAG_ADD_MSO_TESTAPI_FIELD.isActive()) {

            String displayTestApi = SystemProperties.getProperty(VidProperties.MSO_DISPLAY_TEST_API_ON_SCREEN);
            String defaultTestApiValue = SystemProperties.getProperty(VidProperties.MSO_DEFAULT_TEST_API);

            String selectionVisibility = Boolean.parseBoolean(displayTestApi) ? "inherit" : "hidden";
    %>
            <div style="visibility: <%=selectionVisibility%>" id="selectTestApiSection">
                <br/><br/><br/>
                <label>Test API for A-la-carte:</label>
                <select style="width: 20ch" id="selectTestApi" onchange="sessionStorage.setItem('msoRequestParametersTestApiValue',this.value);">
                    <option value="VNF_API">VNF_API (old)</option>
                    <option value="GR_API">GR_API (new)</option>
                </select>
            </div>
            <script type="text/javascript">
                var selectedValue = sessionStorage.getItem('msoRequestParametersTestApiValue') || "<%=defaultTestApiValue%>";
                var element = document.getElementById('selectTestApi');
                if (element) {
                    element.value = selectedValue;
                }
                sessionStorage.setItem('msoRequestParametersTestApiValue', selectedValue);
            </script>
    <%
        }
    %>
<BR>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>