summaryrefslogtreecommitdiffstats
path: root/kernel/Documentation/auxdisplay/cfag12864b-example.c
blob: e7823ffb1ca0f4f06d8ebbcec85b14d4db9fc10c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
/*
 *    Filename: cfag12864b-example.c
 *     Version: 0.1.0
 * Description: cfag12864b LCD userspace example program
 *     License: GPLv2
 *
 *      Author: Copyright (C) Miguel Ojeda Sandonis
 *        Date: 2006-10-31
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License version 2 as
 *  published by the Free Software Foundation.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */

/*
 * ------------------------
 * start of cfag12864b code
 * ------------------------
 */

#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>

#define CFAG12864B_WIDTH		(128)
#define CFAG12864B_HEIGHT		(64)
#define CFAG12864B_SIZE			(128 * 64 / 8)
#define CFAG12864B_BPB			(8)
#define CFAG12864B_ADDRESS(x, y)	((y) * CFAG12864B_WIDTH / \
					CFAG12864B_BPB + (x) / CFAG12864B_BPB)
#define CFAG12864B_BIT(n)		(((unsigned char) 1) << (n))

#undef CFAG12864B_DOCHECK
#ifdef CFAG12864B_DOCHECK
	#define CFAG12864B_CHECK(x, y)		((x) < CFAG12864B_WIDTH && \
						(y) < CFAG12864B_HEIGHT)
#else
	#define CFAG12864B_CHECK(x, y)		(1)
#endif

int cfag12864b_fd;
unsigned char * cfag12864b_mem;
unsigned char cfag12864b_buffer[CFAG12864B_SIZE];

/*
 * init a cfag12864b framebuffer device
 *
 * No error:       return = 0
 * Unable to open: return = -1
 * Unable to mmap: return = -2
 */
static int cfag12864b_init(char *path)
{
	cfag12864b_fd = open(path, O_RDWR);
	if (cfag12864b_fd == -1)
		return -1;

	cfag12864b_mem = mmap(0, CFAG12864B_SIZE, PROT_READ | PROT_WRITE,
		MAP_SHARED, cfag12864b_fd, 0);
	if (cfag12864b_mem == MAP_FAILED) {
		close(cfag12864b_fd);
		return -2;
	}

	return 0;
}

/*
 * exit a cfag12864b framebuffer device
 */
static void cfag12864b_exit(void)
{
	munmap(cfag12864b_mem, CFAG12864B_SIZE);
	close(cfag12864b_fd);
}

/*
 * set (x, y) pixel
 */
static void cfag12864b_set(unsigned char x, unsigned char y)
{
	if (CFAG12864B_CHECK(x, y))
		cfag12864b_buffer[CFAG12864B_ADDRESS(x, y)] |=
			CFAG12864B_BIT(x % CFAG12864B_BPB);
}

/*
 * unset (x, y) pixel
 */
static void cfag12864b_unset(unsigned char x, unsigned char y)
{
	if (CFAG12864B_CHECK(x, y))
		cfag12864b_buffer[CFAG12864B_ADDRESS(x, y)] &=
			~CFAG12864B_BIT(x % CFAG12864B_BPB);
}

/*
 * is set (x, y) pixel?
 *
 * Pixel off: return = 0
 * Pixel on:  return = 1
 */
static unsigned char cfag12864b_isset(unsigned char x, unsigned char y)
{
	if (CFAG12864B_CHECK(x, y))
		if (cfag12864b_buffer[CFAG12864B_ADDRESS(x, y)] &
			CFAG12864B_BIT(x % CFAG12864B_BPB))
			return 1;

	return 0;
}

/*
 * not (x, y) pixel
 */
static void cfag12864b_not(unsigned char x, unsigned char y)
{
	if (cfag12864b_isset(x, y))
		cfag12864b_unset(x, y);
	else
		cfag12864b_set(x, y);
}

/*
 * fill (set all pixels)
 */
static void cfag12864b_fill(void)
{
	unsigned short i;

	for (i = 0; i < CFAG12864B_SIZE; i++)
		cfag12864b_buffer[i] = 0xFF;
}

/*
 * clear (unset all pixels)
 */
static void cfag12864b_clear(void)
{
	unsigned short i;

	for (i = 0; i < CFAG12864B_SIZE; i++)
		cfag12864b_buffer[i] = 0;
}

/*
 * format a [128*64] matrix
 *
 * Pixel off: src[i] = 0
 * Pixel on:  src[i] > 0
 */
static void cfag12864b_format(unsigned char * matrix)
{
	unsigned char i, j, n;

	for (i = 0; i < CFAG12864B_HEIGHT; i++)
	for (j = 0; j < CFAG12864B_WIDTH / CFAG12864B_BPB; j++) {
		cfag12864b_buffer[i * CFAG12864B_WIDTH / CFAG12864B_BPB +
			j] = 0;
		for (n = 0; n < CFAG12864B_BPB; n++)
			if (matrix[i * CFAG12864B_WIDTH +
				j * CFAG12864B_BPB + n])
				cfag12864b_buffer[i * CFAG12864B_WIDTH /
					CFAG12864B_BPB + j] |=
					CFAG12864B_BIT(n);
	}
}

/*
 * blit buffer to lcd
 */
static void cfag12864b_blit(void)
{
	memcpy(cfag12864b_mem, cfag12864b_buffer, CFAG12864B_SIZE);
}

/*
 * ----------------------
 * end of cfag12864b code
 * ----------------------
 */

#include <stdio.h>

#define EXAMPLES	6

static void example(unsigned char n)
{
	unsigned short i, j;
	unsigned char matrix[CFAG12864B_WIDTH * CFAG12864B_HEIGHT];

	if (n > EXAMPLES)
		return;

	printf("Example %i/%i - ", n, EXAMPLES);

	switch (n) {
	case 1:
		printf("Draw points setting bits");
		cfag12864b_clear();
		for (i = 0; i < CFAG12864B_WIDTH; i += 2)
			for (j = 0; j < CFAG12864B_HEIGHT; j += 2)
				cfag12864b_set(i, j);
		break;

	case 2:
		printf("Clear the LCD");
		cfag12864b_clear();
		break;

	case 3:
		printf("Draw rows formatting a [128*64] matrix");
		memset(matrix, 0, CFAG12864B_WIDTH * CFAG12864B_HEIGHT);
		for (i = 0; i < CFAG12864B_WIDTH; i++)
			for (j = 0; j < CFAG12864B_HEIGHT; j += 2)
				matrix[j * CFAG12864B_WIDTH + i] = 1;
		cfag12864b_format(matrix);
		break;

	case 4:
		printf("Fill the lcd");
		cfag12864b_fill();
		break;

	case 5:
		printf("Draw columns unsetting bits");
		for (i = 0; i < CFAG12864B_WIDTH; i += 2)
			for (j = 0; j < CFAG12864B_HEIGHT; j++)
				cfag12864b_unset(i, j);
		break;

	case 6:
		printf("Do negative not-ing all bits");
		for (i = 0; i < CFAG12864B_WIDTH; i++)
			for (j = 0; j < CFAG12864B_HEIGHT; j ++)
				cfag12864b_not(i, j);
		break;
	}

	puts(" - [Press Enter]");
}

int main(int argc, char *argv[])
{
	unsigned char n;

	if (argc != 2) {
		printf(
			"Sintax:  %s fbdev\n"
			"Usually: /dev/fb0, /dev/fb1...\n", argv[0]);
		return -1;
	}

	if (cfag12864b_init(argv[1])) {
		printf("Can't init %s fbdev\n", argv[1]);
		return -2;
	}

	for (n = 1; n <= EXAMPLES; n++) {
		example(n);
		cfag12864b_blit();
		while (getchar() != '\n');
	}

	cfag12864b_exit();

	return 0;
}
39;tenant_id'], 'external_gateway_info': {'network_id': network['network']['id']}}} return router_context, router @staticmethod def _get_mock_floatingip_operation_info(network, subnet): floatingip_context = context.get_admin_context() floatingip = {odl_const.ODL_FLOATINGIP: {'floating_network_id': network['network']['id'], 'tenant_id': network['network']['tenant_id']}} return floatingip_context, floatingip @staticmethod def _get_mock_router_interface_operation_info(network, subnet): router_intf_context = context.get_admin_context() router_intf_dict = {'subnet_id': subnet['subnet']['id'], 'id': network['network']['id']} return router_intf_context, router_intf_dict @classmethod def _get_mock_operation_info(cls, object_type, *args): getter = getattr(cls, '_get_mock_' + object_type + '_operation_info') return getter(*args) def _db_cleanup(self): rows = db.get_all_db_rows(self.db_session) for row in rows: db.delete_row(self.db_session, row=row) @classmethod def _get_mock_request_response(cls, status_code): response = mock.Mock(status_code=status_code) response.raise_for_status = mock.Mock() if status_code < 400 else ( mock.Mock(side_effect=requests.exceptions.HTTPError( cls._status_code_msgs[status_code]))) return response def _test_operation(self, status_code, expected_calls, *args, **kwargs): request_response = self._get_mock_request_response(status_code) with mock.patch('requests.request', return_value=request_response) as mock_method: with mock.patch.object(self.thread.event, 'wait', return_value=False): self.thread.run_sync_thread(exit_after_run=True) if expected_calls: mock_method.assert_called_with( headers={'Content-Type': 'application/json'}, auth=(config.cfg.CONF.ml2_odl.username, config.cfg.CONF.ml2_odl.password), timeout=config.cfg.CONF.ml2_odl.timeout, *args, **kwargs) self.assertEqual(expected_calls, mock_method.call_count) def _call_operation_object(self, operation, object_type, object_id, network, subnet): object_context, object_dict = self._get_mock_operation_info( object_type, network, subnet) method = getattr(self.driver, operation + '_' + object_type) if operation == odl_const.ODL_CREATE: new_object_dict = method(object_context, object_dict) elif operation == odl_const.ODL_UPDATE: new_object_dict = method(object_context, object_id, object_dict) elif operation in [odl_const.ODL_ADD, odl_const.ODL_REMOVE]: router_dict = method(object_context, object_id, object_dict) new_object_dict = self.driver._generate_router_dict( object_id, object_dict, router_dict) else: new_object_dict = method(object_context, object_id) return object_context, new_object_dict def _test_operation_thread_processing(self, object_type, operation, network, subnet, object_id, expected_calls=1): http_requests = {odl_const.ODL_CREATE: 'post', odl_const.ODL_UPDATE: 'put', odl_const.ODL_DELETE: 'delete', odl_const.ODL_ADD: 'put', odl_const.ODL_REMOVE: 'put'} status_codes = {odl_const.ODL_CREATE: requests.codes.created, odl_const.ODL_UPDATE: requests.codes.ok, odl_const.ODL_DELETE: requests.codes.no_content, odl_const.ODL_ADD: requests.codes.created, odl_const.ODL_REMOVE: requests.codes.created} http_request = http_requests[operation] status_code = status_codes[operation] # Create database entry. object_context, new_object_dict = self._call_operation_object( operation, object_type, object_id, network, subnet) # Setup expected results. if operation in [odl_const.ODL_UPDATE, odl_const.ODL_DELETE]: url = (config.cfg.CONF.ml2_odl.url + '/' + object_type + 's/' + object_id) elif operation in [odl_const.ODL_ADD, odl_const.ODL_REMOVE]: url = (config.cfg.CONF.ml2_odl.url + '/' + odl_const.ODL_ROUTER + 's/' + object_id + '/' + operation + '_router_interface') else: url = config.cfg.CONF.ml2_odl.url + '/' + object_type + 's' if operation in [odl_const.ODL_CREATE, odl_const.ODL_UPDATE, odl_const.ODL_ADD, odl_const.ODL_REMOVE]: kwargs = { 'url': url, 'data': DataMatcher(operation, object_type, new_object_dict)} else: kwargs = {'url': url, 'data': None} # Call threading routine to process database entry. Test results. self._test_operation(status_code, expected_calls, http_request, **kwargs) return new_object_dict def _test_thread_processing(self, object_type): # Create network and subnet. kwargs = {'arg_list': (external_net.EXTERNAL,), external_net.EXTERNAL: True} with self.network(**kwargs) as network: with self.subnet(network=network, cidr='10.0.0.0/24'): # Add and process create request. new_object_dict = self._test_operation_thread_processing( object_type, odl_const.ODL_CREATE, network, None, None) object_id = new_object_dict['id'] rows = db.get_all_db_rows_by_state(self.db_session, odl_const.COMPLETED) self.assertEqual(1, len(rows)) # Add and process 'update' request. Adds to database. self._test_operation_thread_processing( object_type, odl_const.ODL_UPDATE, network, None, object_id) rows = db.get_all_db_rows_by_state(self.db_session, odl_const.COMPLETED) self.assertEqual(2, len(rows)) # Add and process 'delete' request. Adds to database. self._test_operation_thread_processing( object_type, odl_const.ODL_DELETE, network, None, object_id) rows = db.get_all_db_rows_by_state(self.db_session, odl_const.COMPLETED) self.assertEqual(3, len(rows)) def _test_db_results(self, object_id, operation, object_type): rows = db.get_all_db_rows(self.db_session) self.assertEqual(1, len(rows)) self.assertEqual(operation, rows[0]['operation']) self.assertEqual(object_type, rows[0]['object_type']) self.assertEqual(object_id, rows[0]['object_uuid']) self._db_cleanup() def _test_object_db(self, object_type): # Create network and subnet for testing. kwargs = {'arg_list': (external_net.EXTERNAL,), external_net.EXTERNAL: True} with self.network(**kwargs) as network: with self.subnet(network=network): object_context, object_dict = self._get_mock_operation_info( object_type, network, None) # Add and test 'create' database entry. method = getattr(self.driver, odl_const.ODL_CREATE + '_' + object_type) new_object_dict = method(object_context, object_dict) object_id = new_object_dict['id'] self._test_db_results(object_id, odl_const.ODL_CREATE, object_type) # Add and test 'update' database entry. method = getattr(self.driver, odl_const.ODL_UPDATE + '_' + object_type) method(object_context, object_id, object_dict) self._test_db_results(object_id, odl_const.ODL_UPDATE, object_type) # Add and test 'delete' database entry. method = getattr(self.driver, odl_const.ODL_DELETE + '_' + object_type) method(object_context, object_id) self._test_db_results(object_id, odl_const.ODL_DELETE, object_type) def _test_dependency_processing( self, test_operation, test_object, test_id, test_context, dep_operation, dep_object, dep_id, dep_context): # Mock sendjson to verify that it never gets called. mock_sendjson = mock.patch.object(client.OpenDaylightRestClient, 'sendjson').start() # Create dependency db row and mark as 'processing' so it won't # be processed by the journal thread. db.create_pending_row(self.db_session, dep_object, dep_id, dep_operation, dep_context) row = db.get_all_db_rows_by_state(self.db_session, odl_const.PENDING) db.update_db_row_state(self.db_session, row[0], odl_const.PROCESSING) # Create test row with dependent ID. db.create_pending_row(self.db_session, test_object, test_id, test_operation, test_context) # Call journal thread. with mock.patch.object(self.thread.event, 'wait', return_value=False): self.thread.run_sync_thread(exit_after_run=True) # Verify that dependency row is still set at 'processing'. rows = db.get_all_db_rows_by_state(self.db_session, odl_const.PROCESSING) self.assertEqual(1, len(rows)) # Verify that the test row was processed and set back to 'pending' # to be processed again. rows = db.get_all_db_rows_by_state(self.db_session, odl_const.PENDING) self.assertEqual(1, len(rows)) # Verify that _json_data was not called. self.assertFalse(mock_sendjson.call_count) def test_router_db(self): self._test_object_db(odl_const.ODL_ROUTER) def test_floatingip_db(self): self._test_object_db(odl_const.ODL_FLOATINGIP) def test_router_intf_db(self): # Create network, subnet and router for testing. kwargs = {'arg_list': (external_net.EXTERNAL,), external_net.EXTERNAL: True} with self.network(**kwargs) as network: with self.subnet(cidr='10.0.0.0/24') as subnet: router_context, router_dict = ( self._get_mock_router_operation_info(network, None)) new_router_dict = self.driver.create_router(router_context, router_dict) router_id = new_router_dict['id'] object_type = odl_const.ODL_ROUTER_INTF router_intf_context, router_intf_dict = \ self._get_mock_router_interface_operation_info(network, subnet) # Remove 'router' database entry to allow tests to pass. self._db_cleanup() # Add and test router interface 'add' database entry. # Note that router interface events do not generate unique # UUIDs. self.driver.add_router_interface(router_intf_context, router_id, router_intf_dict) self._test_db_results(odl_const.ODL_UUID_NOT_USED, odl_const.ODL_ADD, object_type) # Add and test 'remove' database entry. self.driver.remove_router_interface(router_intf_context, router_id, router_intf_dict) self._test_db_results(odl_const.ODL_UUID_NOT_USED, odl_const.ODL_REMOVE, object_type) def test_router_threading(self): self._test_thread_processing(odl_const.ODL_ROUTER) def test_floatingip_threading(self): self._test_thread_processing(odl_const.ODL_FLOATINGIP) def test_router_intf_threading(self): # Create network, subnet and router for testing. kwargs = {'arg_list': (external_net.EXTERNAL,), external_net.EXTERNAL: True} with self.network(**kwargs) as network: with self.subnet(cidr='10.0.0.0/24') as subnet: router_context, router_dict = ( self._get_mock_router_operation_info(network, None)) new_router_dict = self.driver.create_router(router_context, router_dict) router_id = new_router_dict['id'] object_type = odl_const.ODL_ROUTER_INTF # Add and process router interface 'add' request. Adds to # database. Expected calls = 2 because the create_router db # entry is also processed. self._test_operation_thread_processing( object_type, odl_const.ODL_ADD, network, subnet, router_id, expected_calls=2) rows = db.get_all_db_rows_by_state(self.db_session, odl_const.COMPLETED) self.assertEqual(2, len(rows)) # Add and process 'remove' request. Adds to database. self._test_operation_thread_processing( object_type, odl_const.ODL_REMOVE, network, subnet, router_id) rows = db.get_all_db_rows_by_state(self.db_session, odl_const.COMPLETED) self.assertEqual(3, len(rows)) def test_delete_network_validate_ext_delete_router_dep(self): router_context = [NETWORK_ID] self._test_dependency_processing( odl_const.ODL_DELETE, odl_const.ODL_NETWORK, NETWORK_ID, None, odl_const.ODL_DELETE, odl_const.ODL_ROUTER, ROUTER_ID, router_context) def test_create_router_validate_ext_create_port_dep(self): router_context = {'gw_port_id': PORT_ID} self._test_dependency_processing( odl_const.ODL_CREATE, odl_const.ODL_ROUTER, ROUTER_ID, router_context, odl_const.ODL_CREATE, odl_const.ODL_PORT, PORT_ID, None) def test_delete_router_validate_ext_delete_floatingip_dep(self): floatingip_context = [ROUTER_ID] self._test_dependency_processing( odl_const.ODL_DELETE, odl_const.ODL_ROUTER, ROUTER_ID, None, odl_const.ODL_DELETE, odl_const.ODL_FLOATINGIP, FLOATINGIP_ID, floatingip_context) def test_delete_router_validate_ext_remove_routerintf_dep(self): router_intf_dict = {'id': ROUTER_ID} self._test_dependency_processing( odl_const.ODL_DELETE, odl_const.ODL_ROUTER, ROUTER_ID, None, odl_const.ODL_REMOVE, odl_const.ODL_ROUTER_INTF, odl_const.ODL_UUID_NOT_USED, router_intf_dict) def test_delete_router_validate_self_create_dep(self): self._test_dependency_processing( odl_const.ODL_DELETE, odl_const.ODL_ROUTER, ROUTER_ID, EMPTY_DEP, odl_const.ODL_CREATE, odl_const.ODL_ROUTER, ROUTER_ID, None) def test_delete_router_validate_self_update_dep(self): self._test_dependency_processing( odl_const.ODL_DELETE, odl_const.ODL_ROUTER, ROUTER_ID, EMPTY_DEP, odl_const.ODL_UPDATE, odl_const.ODL_ROUTER, ROUTER_ID, None) def test_update_router_validate_self_create_dep(self): router_context = {'gw_port_id': None} self._test_dependency_processing( odl_const.ODL_UPDATE, odl_const.ODL_ROUTER, ROUTER_ID, router_context, odl_const.ODL_CREATE, odl_const.ODL_ROUTER, ROUTER_ID, None) def test_create_floatingip_validate_ext_create_network_dep(self): floatingip_context = {'floating_network_id': NETWORK_ID} self._test_dependency_processing( odl_const.ODL_CREATE, odl_const.ODL_FLOATINGIP, FLOATINGIP_ID, floatingip_context, odl_const.ODL_CREATE, odl_const.ODL_NETWORK, NETWORK_ID, None) def test_update_floatingip_validate_self_create_dep(self): floatingip_context = {'floating_network_id': NETWORK_ID} self._test_dependency_processing( odl_const.ODL_UPDATE, odl_const.ODL_FLOATINGIP, FLOATINGIP_ID, floatingip_context, odl_const.ODL_CREATE, odl_const.ODL_FLOATINGIP, FLOATINGIP_ID, EMPTY_DEP) def test_delete_floatingip_validate_self_create_dep(self): self._test_dependency_processing( odl_const.ODL_DELETE, odl_const.ODL_FLOATINGIP, FLOATINGIP_ID, EMPTY_DEP, odl_const.ODL_CREATE, odl_const.ODL_FLOATINGIP, FLOATINGIP_ID, None) def test_delete_floatingip_validate_self_update_dep(self): self._test_dependency_processing( odl_const.ODL_DELETE, odl_const.ODL_FLOATINGIP, FLOATINGIP_ID, EMPTY_DEP, odl_const.ODL_UPDATE, odl_const.ODL_FLOATINGIP, FLOATINGIP_ID, None) def test_add_router_intf_validate_ext_create_router_dep(self): router_intf_context = {'subnet_id': SUBNET_ID, 'id': ROUTER_ID} self._test_dependency_processing( odl_const.ODL_ADD, odl_const.ODL_ROUTER_INTF, odl_const.ODL_UUID_NOT_USED, router_intf_context, odl_const.ODL_CREATE, odl_const.ODL_ROUTER, ROUTER_ID, None) def test_add_router_intf_validate_ext_create_subnet_dep(self): router_intf_context = {'subnet_id': SUBNET_ID, 'id': ROUTER_ID} self._test_dependency_processing( odl_const.ODL_ADD, odl_const.ODL_ROUTER_INTF, odl_const.ODL_UUID_NOT_USED, router_intf_context, odl_const.ODL_CREATE, odl_const.ODL_SUBNET, SUBNET_ID, None) def test_remove_router_intf_validate_self_remove_router_intf_dep(self): router_intf_context = {'subnet_id': SUBNET_ID, 'id': ROUTER_ID} self._test_dependency_processing( odl_const.ODL_REMOVE, odl_const.ODL_ROUTER_INTF, odl_const.ODL_UUID_NOT_USED, router_intf_context, odl_const.ODL_ADD, odl_const.ODL_ROUTER_INTF, odl_const.ODL_UUID_NOT_USED, router_intf_context)