|
1 | 1 | <!-- |
2 | | -Copyright 2020-Present Couchbase, Inc. |
| 2 | + Copyright 2020-Present Couchbase, Inc. |
3 | 3 |
|
4 | | -Use of this software is governed by the Business Source License included in |
5 | | -the file licenses/BSL-Couchbase.txt. As of the Change Date specified in that |
6 | | -file, in accordance with the Business Source License, use of this software will |
7 | | -be governed by the Apache License, Version 2.0, included in the file |
8 | | -licenses/APL2.txt. |
| 4 | + Use of this software is governed by the Business Source License included in |
| 5 | + the file licenses/BSL-Couchbase.txt. As of the Change Date specified in that |
| 6 | + file, in accordance with the Business Source License, use of this software will |
| 7 | + be governed by the Apache License, Version 2.0, included in the file |
| 8 | + licenses/APL2.txt. |
9 | 9 | --> |
10 | 10 |
|
11 | 11 | <div [formGroup]="group"> |
|
31 | 31 | </div> |
32 | 32 | </div> |
33 | 33 |
|
34 | | - <div class="formrow form-inline" |
| 34 | + <div |
35 | 35 | formGroupName="hostConfig" |
36 | 36 | *ngIf="isHostCfgEnabled && (isEnterprise | async)"> |
37 | | - <input |
38 | | - type="checkbox" |
39 | | - formControlName="afamily" |
40 | | - id="for-use-ipv6-addresses"> |
41 | | - <label for="for-use-ipv6-addresses"> |
42 | | - use IPv6 addresses |
43 | | - </label> |
44 | | - <input |
45 | | - type="checkbox" |
46 | | - id="for-node-encryption" |
47 | | - formControlName="nodeEncryption"> |
48 | | - <label for="for-node-encryption"> |
49 | | - enable node-to-node encryption |
50 | | - </label> |
51 | | - <div |
52 | | - class="error error-form" |
53 | | - [hidden]="!(enableExternalListenerHttp.error | async)?.errors.afamily"> |
54 | | - {{(enableExternalListenerHttp.error | async)?.errors.afamily}} |
| 37 | + <div class="formrow"> |
| 38 | + <input |
| 39 | + type="checkbox" |
| 40 | + id="for-node-encryption" |
| 41 | + formControlName="nodeEncryption"> |
| 42 | + <label for="for-node-encryption"> |
| 43 | + enable node-to-node encryption |
| 44 | + </label> |
| 45 | + <div |
| 46 | + class="error error-form" |
| 47 | + [hidden]="!(setupNetConfigHttp.error | async)?.errors.nodeEncryption"> |
| 48 | + {{(setupNetConfigHttp.error | async)?.errors.nodeEncryption}} |
| 49 | + </div> |
| 50 | + <div |
| 51 | + class="error error-form" |
| 52 | + [hidden]="!(enableExternalListenerHttp.error | async)?.errors._"> |
| 53 | + {{(enableExternalListenerHttp.error | async)?.errors._}} |
| 54 | + </div> |
| 55 | + <div |
| 56 | + class="error error-form" |
| 57 | + [hidden]="!(setupNetConfigHttp.error | async)?.errors._"> |
| 58 | + {{(setupNetConfigHttp.error | async)?.errors._}} |
| 59 | + </div> |
55 | 60 | </div> |
56 | | - <div |
57 | | - class="error error-form" |
58 | | - [hidden]="!(enableExternalListenerHttp.error | async)?.errors._"> |
59 | | - {{(enableExternalListenerHttp.error | async)?.errors._}} |
| 61 | + <div class="form-inline"> |
| 62 | + <label>IP Family Preference</label> |
| 63 | + <span |
| 64 | + class="fa-stack icon-info" |
| 65 | + ngbTooltip="Selecting IPv4 will instruct services in the cluster to listen on IPv4 |
| 66 | + addresses, though as a convenience some services will also listen on IPv6. |
| 67 | + If IPv6 is selected, it's vice-versa. Selecting "IPv4-only" will |
| 68 | + instruct services to only listen on IPv4 addresses and again, it's vice-versa |
| 69 | + if you select "IPv6-only"." |
| 70 | + placement="right"> |
| 71 | + <span class="icon fa-circle-thin fa-stack-2x"></span> |
| 72 | + <span class="icon fa-info fa-stack-1x"></span> |
| 73 | + </span> |
60 | 74 | </div> |
61 | | - <div |
62 | | - class="error error-form" |
63 | | - [hidden]="!(setupNetConfigHttp.error | async)?.errors.afamily"> |
64 | | - {{(setupNetConfigHttp.error | async)?.errors.afamily}} |
65 | | - </div> |
66 | | - <div |
67 | | - class="error error-form" |
68 | | - [hidden]="!(setupNetConfigHttp.error | async)?.errors.nodeEncryption"> |
69 | | - {{(setupNetConfigHttp.error | async)?.errors.nodeEncryption}} |
| 75 | + <div class="formrow"> |
| 76 | + <div class="form-inline"> |
| 77 | + <input |
| 78 | + type="radio" |
| 79 | + formControlName="addressFamilyUI" |
| 80 | + value="inet" |
| 81 | + id="for-use-ipv4"> |
| 82 | + <label for="for-use-ipv4"> |
| 83 | + IPv4 |
| 84 | + </label> |
| 85 | + <input |
| 86 | + type="radio" |
| 87 | + formControlName="addressFamilyUI" |
| 88 | + value="inet6" |
| 89 | + id="for-use-ipv6"> |
| 90 | + <label for="for-use-ipv6"> |
| 91 | + IPv6 |
| 92 | + </label> |
| 93 | + <input |
| 94 | + type="radio" |
| 95 | + formControlName="addressFamilyUI" |
| 96 | + value="inetOnly" |
| 97 | + id="for-use-ipv4-only"> |
| 98 | + <label for="for-use-ipv4-only"> |
| 99 | + IPv4-only |
| 100 | + </label> |
| 101 | + <input |
| 102 | + type="radio" |
| 103 | + formControlName="addressFamilyUI" |
| 104 | + value="inet6Only" |
| 105 | + id="for-use-ipv6-only"> |
| 106 | + <label for="for-use-ipv6-only"> |
| 107 | + IPv6-only |
| 108 | + </label> |
| 109 | + </div> |
| 110 | + <div |
| 111 | + class="error error-form" |
| 112 | + [hidden]="!(enableExternalListenerHttp.error | async)?.errors.afamily"> |
| 113 | + {{(enableExternalListenerHttp.error | async)?.errors.afamily}} |
| 114 | + </div> |
| 115 | + <div |
| 116 | + class="error error-form" |
| 117 | + [hidden]="!(setupNetConfigHttp.error | async)?.errors.afamily"> |
| 118 | + {{(setupNetConfigHttp.error | async)?.errors.afamily}} |
| 119 | + </div> |
70 | 120 | </div> |
71 | | - <div |
72 | | - class="error error-form" |
73 | | - [hidden]="!(setupNetConfigHttp.error | async)?.errors._"> |
74 | | - {{(setupNetConfigHttp.error | async)?.errors._}} |
75 | 121 | </div> |
76 | 122 | </div> |
0 commit comments