Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address copilot's review
  • Loading branch information
erikbocks committed Mar 20, 2026
commit 02a1d071fcca9b67975f68c3365d4d55cd774b9e
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class AddIpToVmNicCmd extends BaseAsyncCreateCmd {
@Parameter(name = ApiConstants.IP_ADDRESS, type = CommandType.STRING, required = false, description = "Secondary IP Address")
private String ipAddr;

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

/////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ private boolean enableStaticNat(long ipId, long vmId, long networkId, boolean is
boolean isOneToOneNat = ipAddress.isOneToOneNat();
Long associatedWithVmId = ipAddress.getAssociatedWithVmId();
Nic guestNic;
wNicSecondaryIpVO nicSecIp = null;
NicSecondaryIpVO nicSecIp = null;
String dstIp = null;
Network network = _networkModel.getNetwork(networkId);

Expand Down
3 changes: 1 addition & 2 deletions ui/src/views/network/NicsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@
<p class="modal-form__label">{{ $t('label.secondaryip.description') }}</p>
<a-input
:placeholder="$t('label.new.secondaryip.description.description')"
v-model:value="newSecondaryIpDescription"
v-focus="editNicResource.type!=='Shared'"></a-input>
v-model:value="newSecondaryIpDescription"></a-input>
</div>

<div style="margin-top: 10px; display: flex; justify-content:flex-end;">
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/network/NicsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
{{ record.traffictype }}
</a-descriptions-item>
<a-descriptions-item :label="$t('label.secondaryips')" v-if="record.secondaryip && record.secondaryip.length > 0 && record.type !== 'L2'">
{{ record.secondaryip.map(x => x.ipaddress + ': ' + x.description ).join(', ') }}
{{ record.secondaryip.map(x => x.description ? (x.ipaddress + ': ' + x.description) : x.ipaddress).join(', ') }}
</a-descriptions-item>
<a-descriptions-item :label="$t('label.ip6address')" v-if="record.ip6address">
{{ record.ip6address }}
Expand Down
Loading