< Home

rename geo-location

Function

The rename geo-location command renames a user-defined region.

Format

rename geo-location old-geo-location-name new-geo-location-name

Parameters

Parameter Description Value
old-geo-location-name

Specifies the name of a user-defined region to be renamed.

The value must be the name of an existing user-defined region.

new-geo-location-name

Specifies the new name of a user-defined region.

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.

The specified name cannot be the same as any predefined region. You can run the display geo-location all command to view the names of predefined regions.

Views

Location view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# Rename user-defined region abc as efg.

<sysname> system-view
[sysname] location
[sysname-location] rename geo-location abc efg

# Rename user-defined region abc as my city.

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