> +      return name;
> +   }
> +
> +   /**
> +    * This provides GSON enum support in jclouds.
> +    * */
> +   public static RuleEthertype fromValue(String name){
> +      if (name != null) {
> +         for (RuleEthertype value : RuleEthertype.values()) {
> +            if (name.equalsIgnoreCase(value.name)) {
> +               return value;
> +            }
> +         }
> +         return UNRECOGNIZED;
> +      }
> +      return null;

See comments above.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/132/files#r16929830

Reply via email to