Bug 5617: OfOverlay refactoring initial + PortSecurity
[groupbasedpolicy.git] / renderers / ofoverlay / src / test / java / org / opendaylight / groupbasedpolicy / renderer / ofoverlay / flow / FlowTableTest.java
1 /*\r
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  */\r
8 \r
9 package org.opendaylight.groupbasedpolicy.renderer.ofoverlay.flow;\r
10 \r
11 import java.util.Map;\r
12 \r
13 import org.junit.Ignore;\r
14 import org.opendaylight.groupbasedpolicy.renderer.ofoverlay.OfWriter;\r
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.Table;\r
16 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;\r
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow;\r
18 \r
19 public class FlowTableTest extends OfTableTest {\r
20     FlowTable table;\r
21     InstanceIdentifier<Table> tiid;\r
22 \r
23     protected void setup() throws Exception {\r
24         tiid = FlowUtils.createTablePath(nodeId,\r
25                                          table.getTableId());\r
26     }\r
27 \r
28     @Ignore\r
29     protected OfWriter dosync(Map<String, Flow> flows) throws Exception {\r
30         OfWriter ofWriter = new OfWriter();\r
31         if (flows != null) {\r
32             for (String key : flows.keySet()) {\r
33                 Flow flow = flows.get(key);\r
34                 if (flow != null) {\r
35                     ofWriter.writeFlow(nodeId, flow.getTableId(), flow);\r
36                 }\r
37             }\r
38         }\r
39         //table.sync(nodeId, ofWriter);\r
40         return ofWriter;\r
41     }\r
42 }\r