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.
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
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. |
- |
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.