BUG-5636: making table features configurable for the He plugin.
[openflowplugin.git] / openflowplugin / src / main / java / org / opendaylight / openflowplugin / openflow / md / core / sal / OpenflowPluginConfig.java
1 /*
2  * Copyright (c) 2016 Ericsson Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.openflowplugin.openflow.md.core.sal;
10
11 /**
12  * Created by eshuvka on 5/16/2016.
13  */
14 public class OpenflowPluginConfig {
15
16     private final boolean skipTableFeatures;
17
18     private OpenflowPluginConfig (OpenflowPluginConfigBuilder builder){
19         skipTableFeatures = builder.skipTableFeatures();
20     }
21
22     public boolean skipTableFeatures(){
23         return skipTableFeatures;
24     }
25
26     public static OpenflowPluginConfigBuilder builder(){
27         return new OpenflowPluginConfigBuilder();
28     }
29
30     public static class OpenflowPluginConfigBuilder{
31         private boolean skipTableFeatures;
32
33         public boolean skipTableFeatures(){
34             return skipTableFeatures;
35         }
36
37         public void setSkipTableFeatures(boolean skip){
38             skipTableFeatures = skip;
39         }
40
41         public OpenflowPluginConfig build() {return new OpenflowPluginConfig(this);}
42     }
43 }