Signed-off-by: Jo-Philipp Wich <jo@mein.io>
return L.firewall.deleteNetwork(name).then(function() { return true });
return true;
+ }).catch(function() {
+ return false;
});
}
* @returns {*|Promise<*>}
* This function may return a promise which is awaited before the rest of
* the configuration is removed. Any non-promise return value and any
- * resolved promise value is ignored.
+ * resolved promise value is ignored. If the returned promise is rejected,
+ * the interface removal will be aborted.
*/
deleteConfiguration: function() {}
});