resource (VS resource template view)

Function

The resource command adds a resource item to a resource template and specifies the upper limit for the resource item.

The undo resource command deletes a resource item from a resource template.

By default, a newly created resource template contains no resource item.

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.

-

upper-limit resource-limit

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

The value is an integer.

m4route

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

-

m6route

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

-

vpn-instance

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

-

u4route

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

-

Views

VS resource template view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
lsvs write

Usage Guidelines

Usage Scenario

To add a resource item to a resource template and specify the upper limit for the resource item, run the resource command. After the configuration is complete, the PS uses the resource template to assign resources to a VS in a batch, improving VS resource management flexibility.

Follow-up Procedure

After the resource template is assigned to the VS, modify the resource items in the template. Modifying a resource item in a resource template does not affect the resources that have been used.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

# Change the number of u4route resources in a specified resource template to 10000.
<HUAWEI> system-view
[~HUAWEI] admin
[~HUAWEI-admin] resource-template temp_Test
[*HUAWEI-admin-template:temp_Test] resource u4route upper-limit 10000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >