< Home

Configuring Free Mobility

This section provides a sample of configuring free mobility using the rpc method.

Table 1 Configuring free mobility

Operation

XPATH

Config

/huawei-free-mobility:group-policy/controller

Data requirement

Table 2 Create a BD

Item

Data

Description

IP address of the primary controller

10.10.10.10

Set the IP address of the primary controller to 10.10.10.10.

Port number used by the device to communicate with the primary controller

5200

Set the port number used by the device to communicate with the primary controller to 5200.

Password

huawei@123

Set the password for connecting the device to controllers huawei@123.

Source IP address of the device

192.168.50.10

Set the source IP address that the device uses to communicate with a controller to 192.168.50.10.

IP address of the secondary controller

10.10.10.12

Set the IP address of the secondary controller to 10.10.10.12.

Port number used by the device to communicate with the secondary controller

5201

Set the port number used by the device to communicate with the secondary controller to 5201.

Request example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<edit-config>
		<target>
			<running/>
		</target>
		<config>
			<huawei-free-mobility:group-policy xmlns:huawei-free-mobility="urn:huawei:yang:huawei-free-mobility">
				<huawei-free-mobility:controller>
					<huawei-free-mobility:address>10.10.10.10</huawei-free-mobility:address>
					<huawei-free-mobility:port>5200</huawei-free-mobility:port>
					<huawei-free-mobility:password>huawei@123</huawei-free-mobility:password>
					<huawei-free-mobility:src-address>192.168.50.10</huawei-free-mobility:src-address>
					<huawei-free-mobility:backup>
						<huawei-free-mobility:address>10.10.10.12</huawei-free-mobility:address>
						<huawei-free-mobility:port>5201</huawei-free-mobility:port>
					</huawei-free-mobility:backup>
				</huawei-free-mobility:controller>
			</huawei-free-mobility:group-policy>
		</config>
	</edit-config>
</rpc>

Response example

Sample of successful response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3">
	<ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="8">
	<rpc-error>
		<error-app-tag>-1</error-app-tag>
		<error-message> The source IP address does not exist in this device.</error-message>
		<error-info>Error on node /huawei-free-mobility:group-policy/controller</error-info>
	</rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic