commit | 3d99e70e879b5ce37c4a4e570b27560b6b8f132d | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@onlab.us> | Mon Nov 04 15:39:34 2013 -0800 |
committer | Pavlin Radoslavov <pavlin@onlab.us> | Mon Nov 04 15:39:34 2013 -0800 |
tree | 2e3c51749d14d5421574d8169fc5c7bb44e5e965 | |
parent | 4f01b00419f5b2617152e4e618ddb4e3d57158db [diff] [blame] |
Fix a bug inside SwitchStorageImpl.deletePort() when deleting a port: Return success when appropriate.
diff --git a/src/main/java/net/onrc/onos/ofcontroller/core/internal/SwitchStorageImpl.java b/src/main/java/net/onrc/onos/ofcontroller/core/internal/SwitchStorageImpl.java index ac61b51..a6277cf 100644 --- a/src/main/java/net/onrc/onos/ofcontroller/core/internal/SwitchStorageImpl.java +++ b/src/main/java/net/onrc/onos/ofcontroller/core/internal/SwitchStorageImpl.java
@@ -306,6 +306,7 @@ op.commit(); } } + success = true; } catch (Exception e) { op.rollback(); e.printStackTrace();