libe3py 0.2.6__tar.gz → 0.2.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: libe3py
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: Python binding of libe3, the O-RAN E3 interface library
5
5
  Author: Northeastern University
6
6
  License-Expression: Apache-2.0
libe3py-0.2.7/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.2.7
@@ -123,6 +123,13 @@ DAppSession::DAppSession(libe3::E3Config config, std::size_t queue_capacity) {
123
123
  impl->enqueue(std::move(ev));
124
124
  });
125
125
 
126
+ agent.set_disconnect_handler([impl](libe3::DisconnectReason reason) {
127
+ E3Event ev;
128
+ ev.kind = E3_EVENT_DISCONNECT;
129
+ ev.disconnect_reason = static_cast<int>(reason);
130
+ impl->enqueue(std::move(ev));
131
+ });
132
+
126
133
  agent.set_message_ack_handler([impl](const libe3::MessageAck& ack) {
127
134
  E3Event ev;
128
135
  ev.kind = E3_EVENT_MESSAGE_ACK;
@@ -62,7 +62,8 @@ enum E3EventKind {
62
62
  E3_EVENT_XAPP_CONTROL = 2, ///< xApp → dApp XAppControlAction
63
63
  E3_EVENT_SUBSCRIPTION_RESPONSE = 3, ///< RAN → dApp SubscriptionResponse
64
64
  E3_EVENT_SETUP_RESPONSE = 4, ///< RAN → dApp SetupResponse
65
- E3_EVENT_MESSAGE_ACK = 5 ///< RAN → dApp MessageAck
65
+ E3_EVENT_MESSAGE_ACK = 5, ///< RAN → dApp MessageAck
66
+ E3_EVENT_DISCONNECT = 6 ///< the RAN is gone; see E3Event::disconnect_reason
66
67
  };
67
68
 
68
69
  /**
@@ -84,6 +85,7 @@ struct E3Event {
84
85
  uint32_t request_id{0}; ///< request/message id (subscription response / ack / xApp control)
85
86
  uint32_t sequence_id{0}; ///< loop correlation id (xApp control); echo it on the control you re-issue
86
87
  int response_code{-1}; ///< 0=positive, 1=negative, -1=n/a
88
+ int disconnect_reason{-1}; ///< disconnect: 0=released by RAN, 1=connection lost, -1=n/a
87
89
  std::vector<uint8_t> payload; ///< opaque E3SM bytes (indication / xApp control)
88
90
  long periodicity{-1}; ///< granted interval in microseconds (subscription response), -1 = not reported
89
91
  bool has_telemetry_granted{false}; ///< telemetry_granted was reported
libe3py-0.2.6/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.2.6
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes