-
Couldn't load subscription status.
- Fork 80
Tapi 2 5 0 fixes #660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nigel-r-davis
wants to merge
2
commits into
Open-Network-Models-and-Interfaces-ONMI:tapi-2_5_0-fixes
Choose a base branch
from
nigel-r-davis:tapi-2_5_0-fixes
base: tapi-2_5_0-fixes
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Tapi 2 5 0 fixes #660
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,137 @@ | ||
| // | ||
| // Copyright (c) 2025 Linux Foundation (LF). All rights reserved. | ||
| // | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // you may not use this file except in compliance with the License. | ||
| // You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
| // | ||
|
|
||
| syntax = "proto3"; | ||
|
|
||
| // | ||
| // This package defines message types used to represent a performance measurement record | ||
| // in a TAPI stream as per the specifications in TR-548. | ||
| // | ||
| package tapi; | ||
|
|
||
| option java_multiple_files = true; | ||
| option java_outer_classname = "TapiGnmi"; | ||
| option java_package = "org.linuxfoundation.onmi.tapi"; | ||
|
|
||
| message StreamDetails { | ||
| MeasurementDetails measurement_details = 1 [json_name = "measurement-details"]; | ||
| } | ||
| message MeasurementDetails { | ||
| uint64 time_measurement_was_sampled = 1 [json_name = "time-measurement-was-sampled"]; | ||
| QualifiedMeasuredValue qualified_measured_value = 2 [json_name = "qualified-measured-value"]; | ||
| string native_resource_id = 3 [json_name = "native-resource-id"]; | ||
| SampleQualifier sample_qualifier = 4 [json_name = "sample-qualifier"]; | ||
| RelativePosition relative_position_of_measurement = 5 [json_name = "relative-position-of-measurement"]; | ||
| DirectionOfMeasuredSignal direction_of_measured_signal = 6 [json_name = "direction-of-measured-signal"]; | ||
| uint64 sample_interval = 7 [json_name = "sample-interval"]; | ||
| string abstract_resource_ref = 8 [json_name = "abstract-resource-ref"]; | ||
| string native_measurement_type = 9 [json_name = "native-measurement-type"]; | ||
| NormalizedMeasurementType normalized_measurement_type = 10 [json_name = "normalized-measurement-type"]; | ||
| repeated QualifiedMeasurement qualified_measurement = 11 [json_name = "qualified-measurement"]; | ||
| string connection_end_point = 12 [json_name = "connection-end-point"]; | ||
| string maintenance_intermediate_point = 13 [json_name = "maintenance-intermediate-point"]; | ||
| string maintenance_end_point = 14 [json_name = "maintenance-end-point"]; | ||
| uint64 measurement_start_time = 15 [json_name = "measurement-start-time"]; | ||
| repeated QualifiedMeasuredValue qualified_measured_value_set = 16 [json_name = "qualified-measured-value-set"]; | ||
| } | ||
| message QualifiedMeasurement { | ||
| uint64 time_measurement_was_sampled = 1 [json_name = "time-measurement-was-sampled"]; | ||
| QualifiedMeasuredValue qualified_measured_value = 2 [json_name = "qualified-measured-value"]; | ||
| string native_resource_id = 3 [json_name = "native-resource-id"]; | ||
| SampleQualifier sample_qualifier = 4 [json_name = "sample-qualifier"]; | ||
| RelativePosition relative_position_of_measurement = 5 [json_name = "relative-position-of-measurement"]; | ||
| DirectionOfMeasuredSignal direction_of_measured_signal = 6 [json_name = "direction-of-measured-signal"]; | ||
| uint64 sample_interval = 7 [json_name = "sample-interval"]; | ||
| string abstract_resource_ref = 8 [json_name = "abstract-resource-ref"]; | ||
| string native_measurement_type = 9 [json_name = "native-measurement-type"]; | ||
| NormalizedMeasurementType normalized_measurement_type = 10 [json_name = "normalized-measurement-type"]; | ||
| uint64 list_index = 11 [json_name ="list-index"]; | ||
| string connection_end_point = 12 [json_name = "connection-end-point"]; | ||
| string maintenance_intermediate_point = 13 [json_name = "maintenance-intermediate-point"]; | ||
| string maintenance_end_point = 14 [json_name = "maintenance-end-point"]; | ||
| uint64 measurement_start_time = 15 [json_name = "measurement-start-time"]; | ||
| repeated QualifiedMeasuredValue qualified_measured_value_set = 16 [json_name = "qualified-measured-value-set"]; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we need to add the following here also: This will be required to be consistent with the yang model in tapi-gnmi-streaming.yang. |
||
| } | ||
| message QualifiedMeasuredValue { | ||
| double value = 1 [json_name = "value"]; | ||
| ValueQualifier value_qualifier = 2 [json_name = "value-qualifier"]; | ||
| string units = 3 [json_name = "units"]; | ||
| string qualified_value_name = 4 [json_name = "qualified-value-name"]; | ||
| string qualified_location_name = 5 [json_name = "qualified-location-name"]; | ||
| string qualified_measurement_type = 6 [json_name = "qualified-measurement-type"]; | ||
| } | ||
| enum ValueQualifier { | ||
| OK = 0; | ||
| INVALID = 1; | ||
| SUSPECT = 2; | ||
| MISSING = 3; | ||
| PARTIAL = 4; | ||
| } | ||
| enum RelativePosition { | ||
| NEAR_END = 0; | ||
| FAR_END = 1; | ||
| NOT_APPLICABLE = 2; | ||
| ALL_LOCATIONS = 3; | ||
| } | ||
| enum DirectionOfMeasuredSignal { | ||
| NO_DIRECTION = 0; | ||
| RECEIVE = 1; | ||
| TRANSMIT = 2; | ||
| RECEIVE_AND_TRANSMIT = 3; | ||
| CONTRA_RECEIVE = 4; | ||
| CONTRA_TRANSMIT = 5; | ||
| CONTRA_RECEIVE_AND_CONTRA_TRANSMIT = 6; | ||
| } | ||
| enum SampleQualifier { | ||
| NORMAL = 0; | ||
| DELAYED = 1; | ||
| FINAL = 2; | ||
| FIRST = 3; | ||
| BASELINE=4; | ||
| } | ||
|
|
||
| enum NormalizedMeasurementType { | ||
| NO_NORMALIZED_TYPE = 0; | ||
| BBE = 1; | ||
| CHROM_DISP = 2; | ||
| DELAY_FRAME_COUNT = 3; | ||
| DIFF_GROUP_DELAY = 4; | ||
| FEC_CORRECTABLE_BLOCKS = 5; | ||
| FEC_CORRECTED_BITS = 6; | ||
| FEC_CORRECTED_BYTES = 7; | ||
| FEC_CORRECTED_CODEWORDS = 8; | ||
| FEC_CORRECTED_ERRORS = 9; | ||
| FEC_POST_FEC_BER = 10; | ||
| FEC_PRE_FEC_BER = 11; | ||
| FEC_SYMBOL_ERRORS = 12; | ||
| FEC_UNCORRECTABLE_BITS = 13; | ||
| FEC_UNCORRECTABLE_BLOCKS = 14; | ||
| FEC_UNCORRECTABLE_BYTES = 15; | ||
| FEC_UNCORRECTABLE_WORDS = 16; | ||
| FEC_UNCORRECTED_CODEWORDS = 17; | ||
| FREQ_OFFS = 18; | ||
| OPTICAL_GAIN = 19; | ||
| OPT_PWR_SPECTR_DENS_INPUT = 20; | ||
| OPT_PWR_SPECTR_DENS_OUTPUT = 21; | ||
| OPT_TOTAL_PWR_INPUT = 22; | ||
| OPT_TOTAL_PWR_OUTPUT = 23; | ||
| OPTICAL_TILT = 24; | ||
| POL_MODE_DISP = 25; | ||
| SES = 26; | ||
| UAS = 27; | ||
| VOA_INPUT = 28; | ||
| VOA_OUTPUT = 29; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to add the following here:
And define
NameAndValueas:This will be required to be consistent with the yang model in tapi-gnmi-streaming.yang.