trevorflanagan commented on this pull request.


> +      this.networkApi = networkApi;
+      this.state = state;
+   }
+
+   @Override
+   public boolean apply(String vlanId) {
+      checkNotNull(vlanId, "vlanId");
+      logger.trace("looking for state on vlan %s", vlanId);
+      final Vlan vlan = networkApi.getVlan(vlanId);
+
+      if (vlan == null && state == State.DELETED) {
+         return true;
+      }
+
+      if (vlan.state().isFailed()) {
+         throw new IllegalStateException(MessageFormat.format("Vlan {0} is in 
FAILED state", vlan.id()));

👍 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/389#discussion_r123704135

Reply via email to