US 11,658,870 B2
Method and apparatus for restoring network device to factory defaults, and network device
Xin Lei, Dongguan (CN); Yun Zhou, Wuhan (CN); Xiao Luo, Dongguan (CN); and Peijian Kang, Dongguan (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
Filed on Sep. 28, 2021, as Appl. No. 17/487,512.
Application 17/487,512 is a continuation of application No. 16/283,585, filed on Feb. 22, 2019, granted, now 11,159,372.
Application 16/283,585 is a continuation of application No. PCT/CN2017/089468, filed on Jun. 22, 2017.
Claims priority of application No. 201610716564.4 (CN), filed on Aug. 24, 2016.
Prior Publication US 2022/0014432 A1, Jan. 13, 2022
This patent is subject to a terminal disclaimer.
Int. Cl. G06F 15/177 (2006.01); H04L 41/0816 (2022.01); G06F 1/24 (2006.01); H04L 65/40 (2022.01); H04L 41/0859 (2022.01)
CPC H04L 41/0816 (2013.01) [G06F 1/24 (2013.01); H04L 65/40 (2013.01); H04L 41/0863 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method for restoring to factory defaults, wherein the method is applied to a Network Configuration Protocol (NETCONF) server, wherein the NETCONF server comprises a running configuration datastore, the method comprising:
receiving, by the NETCONF server, a command for restoring to factory defaults sent by a NETCONF client, wherein the command for restoring to factory defaults is a remote procedure call (RPC) command that is based on a Yang model of the NETCONF for restoring the NETCONF server to the factory defaults; and
replacing, by the NETCONF server, data in the running configuration datastore with factory defaults of the NETCONF server according to the command for restoring to factory defaults.