libe3py 0.2.3__tar.gz → 0.2.4__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.3
3
+ Version: 0.2.4
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.4/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.2.4
@@ -196,22 +196,22 @@ std::vector<uint8_t> DAppSession::setup_ran_function_data(std::size_t i) const {
196
196
  return impl_->setup.ran_function_list[i].ran_function_data;
197
197
  }
198
198
 
199
- int DAppSession::subscribe(uint32_t ran_function_id,
200
- std::vector<uint32_t> telemetry_ids,
201
- std::vector<uint32_t> control_ids,
202
- int sub_time_ms,
203
- int periodicity) {
199
+ int64_t DAppSession::subscribe(uint32_t ran_function_id,
200
+ std::vector<uint32_t> telemetry_ids,
201
+ std::vector<uint32_t> control_ids,
202
+ int sub_time_ms,
203
+ int periodicity) {
204
204
  uint32_t request_id = 0;
205
205
  ErrorCode rc = impl_->agent->subscribe(
206
206
  ran_function_id, std::move(telemetry_ids), std::move(control_ids),
207
207
  opt_u32(sub_time_ms), opt_u32(periodicity), &request_id);
208
- // On success return the assigned request id (positive, 1..1000) so Python
208
+ // On success return the assigned request id (positive, 1..4294967295) so Python
209
209
  // can correlate the SubscriptionResponse by id; on failure return the
210
210
  // ErrorCode (all error codes are negative, SUCCESS is 0).
211
211
  if (rc == ErrorCode::SUCCESS) {
212
- return static_cast<int>(request_id);
212
+ return static_cast<int64_t>(request_id);
213
213
  }
214
- return static_cast<int>(rc);
214
+ return static_cast<int64_t>(rc);
215
215
  }
216
216
 
217
217
  int DAppSession::unsubscribe(uint32_t ran_function_id) {
@@ -146,11 +146,11 @@ public:
146
146
  * @brief Subscribe to a RAN function (after a positive setup).
147
147
  * @param sub_time_ms subscription time, or -1 for unset.
148
148
  * @param periodicity delivery periodicity (µs), or -1 for unset.
149
- * @return the assigned request id (positive, 1..1000) on success, so the
150
- * caller can correlate the SubscriptionResponse by its request_id;
151
- * a negative ErrorCode on failure.
149
+ * @return the assigned request id (positive, 1..4294967295) on success, so
150
+ * the caller can correlate the SubscriptionResponse by its
151
+ * request_id; a negative ErrorCode on failure.
152
152
  */
153
- int subscribe(uint32_t ran_function_id,
153
+ int64_t subscribe(uint32_t ran_function_id,
154
154
  std::vector<uint32_t> telemetry_ids,
155
155
  std::vector<uint32_t> control_ids,
156
156
  int sub_time_ms,
@@ -174,7 +174,8 @@ public:
174
174
  /**
175
175
  * @brief Send a dApp report to the RAN.
176
176
  * @param sequence_id correlation id this dApp assigns to the detection;
177
- * mandatory on the wire.
177
+ * mandatory on the wire, 1..4294967295 (0 is refused with
178
+ * INVALID_PARAM).
178
179
  * @return the assigned message id (positive, 1..4294967295) on success, so
179
180
  * the caller can correlate a later ack/response by id; a negative
180
181
  * ErrorCode on failure.
libe3py-0.2.3/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.2.3
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes