luci-proto-ncm: register further network error codes
authorJo-Philipp Wich <jo@mein.io>
Thu, 12 Jul 2018 15:00:21 +0000 (17:00 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 12 Jul 2018 16:10:59 +0000 (18:10 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
protocols/luci-proto-ncm/luasrc/model/network/proto_ncm.lua

index 4f835701ce126997de5a0113196a33f6ada39471..49abe234728d4d58c5f99d9a0bdf865d80efb49d 100644 (file)
@@ -59,3 +59,11 @@ function proto.contains_interface(self, ifc)
 end
 
 netmod:register_pattern_virtual("^ncm%-%w")
+
+netmod:register_error_code("CONFIGURE_FAILED", luci.i18n.translate("Configuration failed"))
+netmod:register_error_code("DISCONNECT_FAILED",        luci.i18n.translate("Disconnection attempt failed"))
+netmod:register_error_code("FINALIZE_FAILED",  luci.i18n.translate("Finalizing failed"))
+netmod:register_error_code("GETINFO_FAILED",   luci.i18n.translate("Modem information query failed"))
+netmod:register_error_code("INITIALIZE_FAILED",        luci.i18n.translate("Initialization failure"))
+netmod:register_error_code("SETMODE_FAILED",   luci.i18n.translate("Setting operation mode failed"))
+netmod:register_error_code("UNSUPPORTED_MODEM",        luci.i18n.translate("Unsupported modem"))