< Home

geo-location-set

Function

The geo-location-set command creates a region group and displays its view.

The undo geo-location-set command deletes created region groups.

Format

geo-location-set geo-location-set-name

undo geo-location-set geo-location-set-name

Parameters

Parameter Description Value
geo-location-set-name

Specifies the name of a region group.

The value is a case-sensitive character string. The length of a name without spaces ranges from 1 to 63 characters. The length of a name with spaces ranges from 3 to 65 characters. If a name contains spaces, the name must be enclosed with quotation marks (for example, "location for test").

The name cannot contain question marks (?). If the name does not contain any space, it also cannot have any double quotation marks ("). In addition, the name cannot be any, all, or any IPv4 or IPv6 address.

Views

Location view

Default Level

2: Configuration level

Usage Guidelines

A region group can include regions and region groups for policies to reference.

Region groups referenced in policies and other region groups cannot be deleted. You must cancel the reference before you delete them.

Example

# Create region group my city and access its view.

<sysname> system-view
[sysname] location
[sysname-location] geo-location-set "my city"
[sysname-geo-location-set-my city]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >