Skip to content

Commit 02a1d07

Browse files
committed
Address copilot's review
1 parent bedd77f commit 02a1d07

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

api/src/main/java/org/apache/cloudstack/api/command/user/vm/AddIpToVmNicCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class AddIpToVmNicCmd extends BaseAsyncCreateCmd {
5656
@Parameter(name = ApiConstants.IP_ADDRESS, type = CommandType.STRING, required = false, description = "Secondary IP Address")
5757
private String ipAddr;
5858

59-
@Parameter(name = ApiConstants.DESCRIPTION, type = CommandType.STRING, required = false, description = "Description")
59+
@Parameter(name = ApiConstants.DESCRIPTION, type = CommandType.STRING, required = false, description = "Description", length = 2048)
6060
private String description;
6161

6262
/////////////////////////////////////////////////////

server/src/main/java/com/cloud/network/rules/RulesManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ private boolean enableStaticNat(long ipId, long vmId, long networkId, boolean is
467467
boolean isOneToOneNat = ipAddress.isOneToOneNat();
468468
Long associatedWithVmId = ipAddress.getAssociatedWithVmId();
469469
Nic guestNic;
470-
wNicSecondaryIpVO nicSecIp = null;
470+
NicSecondaryIpVO nicSecIp = null;
471471
String dstIp = null;
472472
Network network = _networkModel.getNetwork(networkId);
473473

ui/src/views/network/NicsTab.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,7 @@
218218
<p class="modal-form__label">{{ $t('label.secondaryip.description') }}</p>
219219
<a-input
220220
:placeholder="$t('label.new.secondaryip.description.description')"
221-
v-model:value="newSecondaryIpDescription"
222-
v-focus="editNicResource.type!=='Shared'"></a-input>
221+
v-model:value="newSecondaryIpDescription"></a-input>
223222
</div>
224223

225224
<div style="margin-top: 10px; display: flex; justify-content:flex-end;">

ui/src/views/network/NicsTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{{ record.traffictype }}
4040
</a-descriptions-item>
4141
<a-descriptions-item :label="$t('label.secondaryips')" v-if="record.secondaryip && record.secondaryip.length > 0 && record.type !== 'L2'">
42-
{{ record.secondaryip.map(x => x.ipaddress + ': ' + x.description ).join(', ') }}
42+
{{ record.secondaryip.map(x => x.description ? (x.ipaddress + ': ' + x.description) : x.ipaddress).join(', ') }}
4343
</a-descriptions-item>
4444
<a-descriptions-item :label="$t('label.ip6address')" v-if="record.ip6address">
4545
{{ record.ip6address }}

0 commit comments

Comments
 (0)