Patent ID: 8335171

Claim:
A method comprising: receiving, by a network device, configuration data for configuring one or more other network devices; generating, based on the configuration data and by the network device, one or more remote procedure calls (RPCs) for configuring the one or more other network devices, the one or more RPCs including one or more provisioning RPCs and one or more reverse provisioning RPCs, a particular reverse provisioning RPC, of the one or more reverse provisioning RPCs, being to reverse provision a particular pseudowire (PW) associated with a particular network device of the one or more other network devices; providing, to the one or more other network devices and by the network device, the one or more provisioning RPCs to configure the one or more other network devices; determining, by the network device, whether all of the one or more provisioning RPCs have been successfully provisioned, all endpoints of the particular PW not being successfully configured when all of the of the one or more provisioning RPCs have not been successfully provisioned; and providing, by the network device, the particular reverse provisioning RPC to the particular network device when all of the of the one or more provisioning RPCs have not been successfully provisioned, the particular reverse provisioning RPC including information for returning particular configuration data, of the particular network device and associated with the particular PW, to a state of the particular configuration data that existed prior to the providing of the one or more provisioning RPCs.