mirror of
https://github.com/Telecominfraproject/wlan-cloud-loadsim.git
synced 2025-10-30 18:17:51 +00:00
Refactor inventory module
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
-record( client_info, {
|
-record( client_info, {
|
||||||
name = <<>> :: binary(),
|
name = <<>> :: binary(),
|
||||||
ca = <<>> :: binary(),
|
ca = <<>> :: binary(),
|
||||||
|
sim_name = <<>> :: binary(),
|
||||||
cap = [] :: [client_role()],
|
cap = [] :: [client_role()],
|
||||||
wan_mac0 = <<>> :: binary(), %% MAC is XX:XX:XX:XX:XX:XX lowercase
|
wan_mac0 = <<>> :: binary(), %% MAC is XX:XX:XX:XX:XX:XX lowercase
|
||||||
lan_mac0 = <<>> :: binary(), %% MAC is XX:XX:XX:XX:XX:XX lowercase
|
lan_mac0 = <<>> :: binary(), %% MAC is XX:XX:XX:XX:XX:XX lowercase
|
||||||
@@ -66,6 +67,7 @@
|
|||||||
name = <<>> :: binary(),
|
name = <<>> :: binary(),
|
||||||
service = none :: service_role(),
|
service = none :: service_role(),
|
||||||
ca = <<>> :: binary(),
|
ca = <<>> :: binary(),
|
||||||
|
sim_name = <<>> :: binary(),
|
||||||
description = <<>> :: binary(),
|
description = <<>> :: binary(),
|
||||||
type = <<>> :: binary(),
|
type = <<>> :: binary(),
|
||||||
version = <<>> :: binary(),
|
version = <<>> :: binary(),
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
current_op_pid = none :: none | pid(),
|
current_op_pid = none :: none | pid(),
|
||||||
current_op = none :: none | preparing | pushing | starting | pausing | stopping | restarting | cancelling ,
|
current_op = none :: none | preparing | pushing | starting | pausing | stopping | restarting | cancelling ,
|
||||||
state = created :: created | prepared | pushed | started | paused | stopped | restarted | cancelled ,
|
state = created :: created | prepared | pushed | started | paused | stopped | restarted | cancelled ,
|
||||||
start = none :: none | erlang:timestamp(),
|
start = 0 :: non_neg_integer(),
|
||||||
current_cb = none :: none | notification_cb(),
|
current_cb = none :: none | notification_cb(),
|
||||||
outstanding_nodes = [] :: [node()],
|
outstanding_nodes = [] :: [node()],
|
||||||
sim_info :: simulation()
|
sim_info :: simulation()
|
||||||
|
|||||||
@@ -43,7 +43,9 @@
|
|||||||
}).
|
}).
|
||||||
|
|
||||||
-type stat_report() :: #stat_report{}.
|
-type stat_report() :: #stat_report{}.
|
||||||
|
-type generic_stat_report()::#{atom()=>term()}.
|
||||||
|
|
||||||
|
-export_type([stat_report/0,generic_stat_report/0]).
|
||||||
|
|
||||||
-export_type([stat_report/0]).
|
|
||||||
|
|
||||||
-endif.
|
-endif.
|
||||||
Reference in New Issue
Block a user