def _test_add_remove_network(self, action, cmd, args):
        # Add or Remove network to/from a BGP Speaker.
        resource = 'bgp_speaker'
        subcmd = action % '%s_gateway_network'
        body = {'network_id': 'netid'}
        if action == 'add':
            retval = {'network': 'netid'}
        else:
            retval = None
        self._test_update_resource_action(resource, cmd, 'myid',
                                          subcmd, args, body, retval)
dataset/ETHPy150Open openstack/python-neutronclient/neutronclient/tests/unit/bgp/test_cli20_speaker.py/CLITestV20BGPSpeakerJSON._test_add_remove_network/swapped operands of `%`