Merge "creating a default subnet"
[controller.git] / opendaylight / forwardingrulesmanager_mdsal / openflow / src / main / java / org / opendaylight / controller / forwardingrulesmanager_mdsal / consumer / impl / FRMUtil.java
1 package org.opendaylight.controller.forwardingrulesmanager_mdsal.consumer.impl;
2
3 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.buckets.bucket.Actions;
4
5 public class FRMUtil {
6     private static final String NAMEREGEX = "^[a-zA-Z0-9]+$";
7     public enum operation {ADD, DELETE, UPDATE, GET};
8     
9     
10     public static boolean isNameValid(String name) {
11     
12         //  Name validation 
13         if (name == null || name.trim().isEmpty() || !name.matches(NAMEREGEX)) {
14             return false;
15         }
16         return true;
17         
18     }
19     
20     public static boolean areActionsValid(Actions actions) {
21      //   List<Action> actionList;
22        // Action actionRef;
23       //  if (null != actions && null != actions.getAction()) {
24        //     actionList = actions.getAction();
25             
26
27  
28                
29        // }
30         
31         return true;
32     }
33 }