A method used in a network device for network management based on NETwork CONFiguration, NETCONF, protocol, the method comprising: receiving a Remote Procedure Call, RPC, message from a network management system, the RPC message instructing the network device to perform an edit operation on the network device's configuration; generating a configuration change notification based on the received RPC message to indicate that the network device's configuration has changed, the configuration change notification indicating a target of the edit operation, a type of the edit operation, and a value of the edit operation, wherein said generating the configuration change notification comprises: building a new datastore based on the received RPC message and a current datastore, the current datastore storing a current configuration before the edit operation and the new datastore storing a new configuration after the edit operation; comparing the new datastore with the current datastore; creating a difference datastore based on the comparing, the difference datastore storing a configuration difference between the new configuration and the current configuration; and generating the configuration change notification based on the configuration difference; and transmitting the configuration change notification to the network management system. receiving a Remote Procedure Call, RPC, message from a network management system, the RPC message instructing the network device to perform an edit operation on the network device's configuration; generating a configuration change notification based on the received RPC message to indicate that the network device's configuration has changed, the configuration change notification indicating a target of the edit operation, a type of the edit operation, and a value of the edit operation, wherein said generating the configuration change notification comprises: building a new datastore based on the received RPC message and a current datastore, the current datastore storing a current configuration before the edit operation and the new datastore storing a new configuration after the edit operation; comparing the new datastore with the current datastore; creating a difference datastore based on the comparing, the difference datastore storing a configuration difference between the new configuration and the current configuration; and generating the configuration change notification based on the configuration difference; and transmitting the configuration change notification to the network management system. building a new datastore based on the received RPC message and a current datastore, the current datastore storing a current configuration before the edit operation and the new datastore storing a new configuration after the edit operation; comparing the new datastore with the current datastore; creating a difference datastore based on the comparing, the difference datastore storing a configuration difference between the new configuration and the current configuration; and generating the configuration change notification based on the configuration difference; and transmitting the configuration change notification to the network management system.