lib/openc3/models/interface_status_model.rb in openc3-5.0.11 vs lib/openc3/models/interface_status_model.rb in openc3-5.1.0
- old
+ new
@@ -14,17 +14,20 @@
# GNU Affero General Public License for more details.
# Modified by OpenC3, Inc.
# All changes Copyright 2022, OpenC3, Inc.
# All Rights Reserved
+#
+# This file may also be used under the terms of a commercial license
+# if purchased from OpenC3, Inc.
require 'openc3/models/model'
module OpenC3
# Stores the status about an interface. This class also implements logic
# to handle status for a router since the functionality is identical
# (only difference is the Redis key used).
- class InterfaceStatusModel < EphemeralModel
+ class InterfaceStatusModel < Model
INTERFACES_PRIMARY_KEY = 'openc3_interface_status'
ROUTERS_PRIMARY_KEY = 'openc3_router_status'
attr_accessor :state
attr_accessor :clients