resource (Resource template view of admin)

Function

The resource command assigns logical resources to a virtual system (VS).

The undo resource command restores the default resource allocation method.

By default, no logical resource is allocated to a VS.

Format

resource u4route upper-limit resource-limit

resource u6route upper-limit resource-limit

resource m4route upper-limit resource-limit

resource m6route upper-limit resource-limit

resource vpn-instance upper-limit resource-limit

undo resource u4route upper-limit

undo resource u6route upper-limit

undo resource m4route upper-limit

undo resource m6route upper-limit

undo resource vpn-instance upper-limit

Parameters

Parameter Description Value
u6route

Specifies the u6route (Unicast IPv6 routing entry) resource to be allocated to the service VS.

The value ranges from 0 to 2097152. The default value is 1048576.

upper-limit resource-limit

Specifies the upper limit for a logical resource to be assigned to a VS.

The value is an integer.The value ranges from 1 to 32000.

m4route

Specifies the m4route (Multicast IPv4 routing entry) resource be allocated to the service VS.

The value ranges from 0 to 16000. The default value is 2000.

m6route

Specifies the m6route (Multicast IPv6 routing entry) resource to be allocated to the service VS.

The value ranges from 0 to 8000. The default value is 512.

vpn-instance

Specifies the vpn-instance resource to be allocated to the service VS.

The value ranges from 1 to 4096. The default value is 512.

u4route

Specifies the u4route (Unicast IPv4 routing entry) resource to be allocated to the service VS.

The value ranges from 0 to 4194304. The default value is 1048576.

Views

Resource template view of admin

Default Level

3: Management level

Task Name and Operations

Task Name Operations
lsvs write

Usage Guidelines

Usage Scenario

To assign or reclaim logical resources, run the resource command. To restore the default configuration, run the undo resource command. If a specified resource is insufficient, an error message is displayed.

Prerequisites

Logical resources can be assigned or reclaimed only when both of the following conditions are true:

  • A VS is running.
  • You have specified the port mode for the VS.

Configuration Impact

Decreasing the upper limit for a logical resource does not affect services that are already running on the VS.

Example

# Set the upper limit for m4route resources to be assigned to a VS named VS1 to 100.
<HUAWEI> system-view
[~HUAWEI] admin
[~HUAWEI-admin] virtual-system vs1
[*HUAWEI-admin-vs:vs1] port-mode port
[*HUAWEI-admin-vs:vs1] resource m4route upper-limit 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >