(self, original, updated, channel_id, output)
Takes two marshaled common.Config messages and computes the config update which
        transitions between the two.

        params:
            original: The original config message.
            updated: The updated config message.
            channel_id: The name of the channel for this update.
            output: A file to write the JSON document to.
Takes two marshaled common.Config messages and computes the config update which
        transitions between the two.
Takes two marshaled common . Config messages and computes the config update which transitions between the two .
def compute_update(self, original, updated, channel_id, output):
        """
        Takes two marshaled common.Config messages and computes the config update which
        transitions between the two.

        params:
            original: The original config message.
            updated: The updated config message.
            channel_id: The name of the channel for this update.
            output: A file to write the JSON document to.
        """
        try:
            call([self.configtxlator,
                  "--original", original,
                  "--updated", updated,
                  "--channel_id", channel_id,
                  "--output", "{}/{}".format(self.filepath, output)
                  ])
        except Exception as e:
            err_msg = "configtxlator compute update fail! "
            raise Exception(err_msg + str(e))
def compute_update ( self , original , updated , channel_id , output ) : try : call ( [ self . configtxlator , "--original" , original , "--updated" , updated , "--channel_id" , channel_id , "--output" , "{}/{}" . format ( self . filepath , output ) ] ) except Exception as e : err_msg = "configtxlator compute update fail! " raise Exception ( err_msg + str ( e ) )