Merge "Moving clustering, dlux, and xsql docs from user to getting started guide"
[docs.git] / manuals / user-guide / src / main / asciidoc / groupbasedpolicy / odl-groupbasedpolicy-ui-user-guide.adoc
1 ==== Overview
2
3 These following components make up this application and are described in more detail in following sections:
4
5 * Basic view
6 * Governance view
7 * Policy Expression view
8 * Wizard view
9
10 The *GBP* UX is access via: 
11
12  http://<odl controller>:8181/index.html
13
14 ==== Basic view
15
16 Basic view contains 5 navigation buttons which switch user to the desired section of application:
17
18 * Governance – switch to the Governance view (middle of graphic has the same function)
19 * Renderer configuration – switch to the Policy expression view with Renderers section expanded
20 * Policy expression – switch to the Policy expression view with Policy section expanded
21 * Operational constraints – placeholder for development in next release
22
23 .Basic view
24 image::groupbasedpolicy/ui-1-basicview.png[align="center",width=500]
25
26
27 ==== Governance view
28
29 Governance view consists from three columns.
30
31 .Governance view
32 image::groupbasedpolicy/ui-2-governanceview.png[align="center",width=500]
33
34 *Governance view – Basic view – Left column*
35
36 In the left column is Health section with Exception and Conflict buttons with no functionality yet. This is a placeholder for development in further releases.
37
38 *Governance view – Basic view – Middle column*
39
40 In the top half of this section is select box with list of tenants for select. Once the tenant is selected, all sub sections in application operate and display data with actual selected tenant. 
41
42 Below the select box are buttons which display Expressed or Delivered policy of Governance section. In the bottom half of this section is select box with list of renderers for select. There is currently only <<OfOverlay,OfOverlay>> renderer available. 
43
44 Below the select box is Renderer configuration button, which switch the app into the Policy expression view with Renderers section expanded for performing CRUD operations. Renderer state button display Renderer state view.
45
46 *Governance view – Basic view – Right column*
47
48 In the bottom part of the right section of Governance view is Home button which switch the app to the Basic view. 
49
50 In the top part is situated navigation menu with four main sections. 
51
52 Policy expression button expand/collapse sub menu with three main parts of Policy expression. By clicking on sub menu buttons, user will be switched into the Policy expressions view with appropriate section expanded for performing CRUD operations. 
53
54 Renderer configuration button switches user into the Policy expressions view. 
55
56 Governance button expand/collapse sub menu with four main parts of Governance section. Sub menu buttons of Governance section display appropriate section of Governance view. 
57
58 Operational constraints have no functionality yet, and is a placeholder for development in further releases. 
59
60 Below the menu is place for view info section which displays info about actual selected element from the topology (explained below).
61
62
63 *Governance view – Expressed policy*
64
65 In this view are displayed contracts with their consumed and provided EndpointGroups of actual selected tenant, which can be changed in select box in the upper left corner. 
66
67 By single-clicking on any contract or EPG, the data of actual selected element will be shown in the right column below the menu. A Manage button launches a display wizard window for managing configuration of items such as <<SFC,Service Function Chaining>>.
68
69
70 .Expressed policy
71 image::groupbasedpolicy/ui-3-governanceview-expressed.png[align="center",width=500]
72
73
74 *Governance view – Delivered policy*
75 In this view are displayed subjects with their consumed and provided EndpointGroups of actual selected tenant, which can be changed in select box in the upper left corner. 
76
77 By single-clicking on any subject or EPG, the data of actual selected element will be shown in the right column below the menu. 
78
79 By double-click on subject the subject detail view will be displayed with subject’s rules of actual selected subject, which can be changed in select box in the upper left corner. 
80
81 By single-clicking on rule or subject, the data of actual selected element will be shown in the right column below the menu. 
82
83 By double-clicking on EPG in Delivered policy view, the EPG detail view will be displayed with EPG’s endpoints of actual selected EPG, which can be changed in select box in the upper left corner. 
84
85 By single-clicking on EPG or endpoint the data of actual selected element will be shown in the right column below the menu.
86
87
88 .Delivered policy
89 image::groupbasedpolicy/ui-4-governanceview-delivered-0.png[align="center",width=500]
90
91
92
93 .Subject detail
94 image::groupbasedpolicy/ui-4-governanceview-delivered-1-subject.png[align="center",width=500]
95
96
97 .EPG detail
98 image::groupbasedpolicy/ui-4-governanceview-delivered-2-epg.png[align="center",width=500]
99
100 *Governance view – Renderer state*
101
102 In this part are displayed Subject feature definition data with two main parts: Action definition and Classifier definition. 
103
104 By clicking on the down/right arrow in the circle is possible to expand/hide data of appropriate container or list. Next to the list node are displayed names of list’s elements where one is always selected and element’s data are shown (blue line under the name). 
105
106 By clicking on names of children nodes is possible to select desired node and node’s data will be displayed.
107
108
109 .Renderer state
110 image::groupbasedpolicy/ui-4-governanceview-renderer.png[align="center",width=500]
111
112 ==== Policy expression view
113
114 In the left part of this view is placed topology of actual selected elements with the buttons for switching between types of topology at the bottom. 
115
116 Right column of this view contains four parts. At the top of this column are displayed breadcrumbs with actual position in the application. 
117
118 Below the breadcrumbs is select box with list of tenants for select. In the middle part is situated navigation menu, which allows switch to the desired section for performing CRUD operations. 
119
120 At the bottom is quick navigation menu with Access Model Wizard button which display Wizard view, Home button which switch application to the Basic view and occasionally Back button, which switch application to the upper section.
121
122 *Policy expression  - Navigation menu*
123
124 To open Policy expression, select Policy expression from the GBP Home screen.
125
126 In the top of navigation box you can select the tenant from the tenants list to activate features addicted to selected tenant.
127
128 In the right menu, by default, the Policy menu section is expanded. Subitems of this section are modules for CRUD (creating, reading, updating and deleting) of tenants, EndpointGroups, contracts, L2/L3 objects.
129
130 * Section Renderers contains CRUD forms for Classifiers and Actions.
131 * Section Endpoints contains CRUD forms for Endpoint and L3 prefix endpoint.
132
133 .Navigation menu
134 image::groupbasedpolicy/ui-5-expresssion-1.png[height=400]
135
136 .CRUD operations
137 image::groupbasedpolicy/ui-5-expresssion-2.png[height=400]
138
139
140 *Policy expression - Types of topology*
141
142 There are three different types of topology:
143
144 * Configured topology - EndpointGroups and contracts between them from CONFIG datastore
145 * Operational topology - displays same information but is based on operational data. 
146 * L2/L3 - displays relationships between L3Contexts, L2 Bridge domains, L2 Flood domains and Subnets.
147
148
149 .L2/L3 Topology
150 image::groupbasedpolicy/ui-5-expresssion-3.png[align="center",width=500]
151
152
153 .Config Topology
154 image::groupbasedpolicy/ui-5-expresssion-4.png[align="center",width=500]
155
156
157 *Policy expression - CRUD operations*
158
159 In this part are described basic flows for viewing, adding, editing and deleting system elements like tenants, EndpointGroups etc.
160
161 ==== Tenants
162
163 To edit tenant objects click the Tenants button in the right menu. You can see the CRUD form containing tenants list and control buttons.
164
165 To add new tenant, click the Add button This will display the form for adding a new tenant. After filling tenant attributes Name and Description click Save button. Saving of any object can be performed only if all the object attributes are filled correctly. If some attribute doesn't have correct value, exclamation mark with mouse-over tooltip will be displayed next to the label for the attribute. After saving of tenant the form will be closed and the tenants list will be set to default value.
166
167 To view an existing tenant, select the tenant from the select box Tenants list. The view form is read-only and can be closed by clicking cross mark in the top right of the form.
168
169 To edit selected tenant, click the Edit button, which will display the edit form for selected tenant. After editing the Name and Description of selected tenant click the Save button to save selected tenant. After saving of tenant the edit form will be closed and the tenants list will be set to default value.
170
171 To delete tenant select the tenant from the Tenants list and click Delete button.
172
173 To return to the Policy expression click Back button on the bottom of window.
174
175 *EndpointGroups*
176
177 For managing EndpointGroups (EPG) the tenant from the top Tenants list must be selected.
178
179 To add new EPG click Add button and after filling required attributes click Save button. After adding the EPG you can edit it and assign Consumer named selector or Provider named selector to it.
180
181 To edit EPG click the Edit button after selecting the EPG from Group list.
182
183 To add new Consumer named selector (CNS) click the Add button next to the Consumer named selectors list. While CNS editing you can set one or more contracts for current CNS pressing the Plus button and selecting the contract from the Contracts list. To remove the contract, click on the cross mark next to the contract. Added CNS can be viewed, edited or deleted by selecting from the Consumer named selectors list and clicking the Edit and Delete buttons like with the EPG or tenants.
184
185 To add new Provider named selector (PNS) click the Add button next to the Provider named selectors list. While PNS editing you can set one or more contracts for current PNS pressing the Plus button and selecting the contract from the Contracts list. To remove the contract, click on the cross mark next to the contract. Added PNS can be viewed, edited or deleted by selecting from the Provider named selectors list and clicking the Edit and Delete buttons like with the EPG or tenants.
186
187 To delete EPG, CNS or PNS select it in selectbox and click the Delete button next to the selectbox.
188
189 *Contracts*
190
191 For managing contracts the tenant from the top Tenants list must be selected.
192
193 To add new Contract click Add button and after filling required fields click Save button.
194
195 After adding the Contract user can edit it by selecting in the Contracts list  and clicking Edit button.
196
197 To add new Clause click Add button next to the Clause list while editing the contract. While editing the Clause after selecting clause from the Clause list user can assign clause subjects by clicking the Plus button next to the Clause subjects label. Adding and editing action must be submitted by pressing Save button. To manage Subjects you can use CRUD form like with the Clause list.
198
199 *L2/L3*
200
201 For managing L2/L3 the tenant from the top Tenants list must be selected.
202
203 To add L3 Context click the Add button next to the L3 Context list ,which will display the form for adding a new L3 Context. After filling L3 Context attributes click Save button. After saving of L3 Context, form will be closed and the L3 Context list will be set to default value.
204
205 To view an existing L3 Context, select the L3 Context from the select box L3 Context list. The view form is read-only and can be closed by clicking cross mark in the top right of the form.
206
207 If user wants to edit selected L3 Context, click the Edit button, which will display the edit form for selected L3 Context. After editing click the Save button to save selected L3 Context. After saving of L3 Context, the edit form will be closed and the L3 Context list will be set to default value.
208
209 To delete L3 Context, select it from the L3 Context list and click Delete button.
210
211 To add L2 Bridge Domain, click the Add button next to the L2 Bridge Domain list. This will display the form for adding a new L2 Bridge Domain. After filling L2 Bridge Domain attributes click Save button. After saving of L2 Bridge Domain, form will be closed and the L2 Bridge Domain list will be set to default value.
212
213 To view an existing L2 Bridge Domain, select the L2 Bridge Domain from the select box L2 Bridge Domain list. The view form is read-only and can be closed by clicking cross mark in the top right of the form.
214
215 If user wants to edit selected L2 Bridge Domain, click the Edit button, which will display the edit form for selected L2 Bridge Domain. After editing click the Save button to save selected L2 Bridge Domain. After saving of L2 Bridge Domain the edit form will be closed and the L2 Bridge Domain list will be set to default value.
216
217 To delete L2 Bridge Domain select it from the L2 Bridge Domain list and click Delete button.
218
219 To add L3 Flood Domain, click the Add button next to the L3 Flood Domain list. This will display the form for adding a new L3 Flood Domain. After filling L3 Flood Domain attributes click Save button. After saving of L3 Flood Domain, form will be closed and the L3 Flood Domain list will be set to default value.
220
221 To view an existing L3 Flood Domain, select the L3 Flood Domain from the select box L3 Flood Domain list. The view form is read-only and can be closed by clicking cross mark in the top right of the form.
222
223 If user wants to edit selected L3 Flood Domain, click the Edit button, which will display the edit form for selected L3 Flood Domain. After editing click the Save button to save selected L3 Flood Domain. After saving of L3 Flood Domain the edit form will be closed and the L3 Flood Domain list will be set to default value.
224
225 To delete L3 Flood Domain select it from the L3 Flood Domain list and click Delete button.
226
227 To add Subnet click the Add button next to the Subnet list. This will display the form for adding a new Subnet. After filling Subnet attributes click Save button. After saving of Subnet, form will be closed and the Subnet list will be set to default value.
228
229 To view an existing Subnet, select the Subnet from the select box Subnet list. The view form is read-only and can be closed by clicking cross mark in the top right of the form.
230
231 If user wants to edit selected Subnet, click the Edit button, which will display the edit form for selected Subnet. After editing click the Save button to save selected Subnet. After saving of Subnet the edit form will be closed and the Subnet list will be set to default value.
232
233 To delete Subnet select it from the Subnet list and click Delete button.
234
235 *Classifiers*
236
237 To add Classifier, click the Add button next to the Classifier list. This will display the form for adding a new Classifier. After filling Classifier attributes click Save button. After saving of Classifier, form will be closed and the Classifier list will be set to default value.
238
239 To view an existing Classifier, select the Classifier from the select box Classifier list. The view form is read-only and can be closed by clicking cross mark in the top right of the form.
240
241 If you want to edit selected Classifier, click the Edit button, which will display the edit form for selected Classifier. After editing click the Save button to save selected Classifier. After saving of Classifier the edit form will be closed and the Classifier list will be set to default value.
242
243 To delete Classifier select it from the Classifier list and click Delete button.
244
245 *Actions*
246
247 To add Action, click the Add button next to the Action list. This will display the form for adding a new Action. After filling Action attributes click Save button. After saving of Action, form will be closed and the Action list will be set to default value.
248
249 To view an existing Action, select the Action from the select box Action list. The view form is read-only and can be closed by clicking cross mark in the top right of the form.
250
251 If user wants to edit selected Action, click the Edit button, which will display the edit form for selected Action. After editing click the Save button to save selected Action. After saving of Action the edit form will be closed and the Action list will be set to default value.
252
253 To delete Action select it from the Action list and click Delete button.
254
255 *Endpoint*
256
257 To add Endpoint, click the Add button next to the Endpoint list. This will display the form for adding a new Endpoint. To add EndpointGroup assignment click the Plus button next to the label EndpointGroups. To add Condition click Plus button next to the label Condition. To add L3 Address click the Plus button next to the L3 Addresses label. After filling Endpoint attributes click Save button. After saving of Endpoint, form will be closed and the Endpoint list will be set to default value.
258
259 To view an existing Endpoint just, the Endpoint from the select box Endpoint list. The view form is read-only and can be closed by clicking cross mark in the top right of the form.
260
261 If you want to edit selected Endpoint, click the Edit button, which will display the edit form for selected Endpoint. After editing click the Save button to save selected Endpoint. After saving of Endpoint the edit form will be closed and the Endpoint list will be set to default value.
262
263 To delete Endpoint select it from the Endpoint list and click Delete button.
264
265 *L3 prefix endpoint*
266
267 To add L3 prefix endpoint, click the Add button next to the L3 prefix endpoint list. This will display the form for adding a new Endpoint. To add EndpointGroup assignment, click the Plus button next to the label EndpointGroups. To add Condition, click Plus button next to the label Condition. To add L2 gateway click the Plus button next to the L2 gateways label.  To add L3 gateway, click the Plus button next to the L3 gateways label. After filling L3 prefix endpoint attributes click Save button. After saving of L3 prefix endpoint, form will be closed and the Endpoint list will be set to default value.
268
269 To view an existing L3 prefix endpoint, select the Endpoint from the select box L3 prefix endpoint list. The view form is read-only and can be closed by clicking cross mark in the top right of the form.
270
271 If you want to edit selected L3 prefix endpoint, click the Edit button, which will display the edit form for selected L3 prefix endpoint. After editing click the Save button to save selected L3 prefix endpoint. After saving of Endpoint the edit form will be closed and the Endpoint list will be set to default value.
272
273 To delete Endpoint select it from the L3 prefix endpoint list and click Delete button.
274
275 ==== Wizard
276
277 Wizard provides quick method to send basic data to controller necessary for basic usage of GBP application. It is useful in the case that there aren’t any data in controller. In the first tab is form for create tenant. The second tab is for CRUD operations with contracts and their sub elements such as subjects, rules, clauses, action refs and classifier refs. The last tab is for CRUD operations with EndpointGroups and their CNS and PNS. Created structure of data is possible to send by clicking on Submit button.
278
279
280 .Wizard
281 image::groupbasedpolicy/ui-6-wizard.png[align="center",width=500]
282