The acl command configures an ACL for the gRPC service.
The undo acl command deletes an ACL of the gRPC service.
By default, no ACL is configured for the gRPC service.
Parameter | Description | Value |
---|---|---|
acl-name |
Creates a named ACL. |
The value is a string of 1 to 64 case-sensitive characters, spaces not supported. The name must start with a letter or digit, and cannot contain only digits. |
acl-number |
Creates a basic or numbered advanced ACL. |
The value is an integer ranging from 2000 to 3999.
|
Usage Scenario
If a collector functioning as a client initiates a connection to a device functioning as a server, the data sampled is dynamically subscribed to. In this case, you can run the acl command to configure an ACL for the gRPC service. This allows certain clients to connect to the server.
Prerequisites
An ACL has been created.
<HUAWEI> system-view [~HUAWEI] acl ipv6 2000 [*HUAWEI-acl6-basic-2000] quit [*HUAWEI] grpc [*HUAWEI-grpc] grpc server ipv6 [*HUAWEI-grpc-server-ipv6] acl 2000
<HUAWEI> system-view [~HUAWEI] acl ipv6 name abc [*HUAWEI-acl6-advance-abc] quit [*HUAWEI] grpc [*HUAWEI-grpc] grpc server ipv6 [*HUAWEI-grpc-server-ipv6] acl abc