acl (GRPC IPv6 server view)

Function

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.

Format

acl acl-name

acl acl-number

undo acl [ acl-name ]

undo acl acl-number

Parameters

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.

  • The number of a basic ACL ranges from 2000 to 2999.
  • The number of an advanced ACL ranges from 3000 to 3999.

Views

GRPC IPv6 server view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
grpc write

Usage Guidelines

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.

Example

# Configure ACL 2000 for the gRPC IPv6 service during Telemetry dynamic subscription.
<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
# Configure ACL abc for the gRPC IPv6 service during Telemetry dynamic subscription.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >