Toggle the standby status of a traffic group.

         WARNING: This method which used POST obtains json keys from the device
         that are not available in the response to a GET against the same URI.

         NOTE: This method method is deprecated and probably will be removed,
               usage of exec_cmd is encouraged.

def toggle_standby(self, **kwargs):
        """Toggle the standby status of a traffic group.

         WARNING: This method which used POST obtains json keys from the device
         that are not available in the response to a GET against the same URI.

         NOTE: This method method is deprecated and probably will be removed,
               usage of exec_cmd is encouraged.
        """

        trafficgroup = kwargs.pop('trafficgroup')
        state = kwargs.pop('state')
        if kwargs:
            raise TypeError('Unexpected **kwargs: %r' % kwargs)
        arguments = {'standby': state, 'traffic-group': trafficgroup}
        return self.exec_cmd('run', **arguments)