broadview-lib/broadview_lib/pt/packet_trace_drop_reasons.py
Volodymyr Samotiy db51326ec1 Add PacketTrace parser
Change-Id: I07734febd35b162f7813bed8502441f07d158631
2016-06-20 18:00:54 +03:00

31 lines
889 B
Python

# (C) Copyright Broadcom Corporation 2016
#
# 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.
class PacketTraceDropReasons():
def __init__(self):
self._reasons = []
def getReasons(self):
return self._reasons
def __repr__(self):
return "packet-trace-drop-reasons"
def parse(self, data):
ret = True
self._reasons = data
return ret