We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b8918a commit 34b9f36Copy full SHA for 34b9f36
tests/dvslib/dvs_queue.py
@@ -17,6 +17,8 @@ class DVSQueue:
17
COUNTERS_COUNTERS = "COUNTERS"
18
COUNTERS_QUEUE_NAME_MAP = "COUNTERS_QUEUE_NAME_MAP"
19
20
+ OID_NULL = "oid:0x0"
21
+
22
def __init__(self, asic_db, config_db, counters_db):
23
"""Create a new DVS queue manager."""
24
self.asic_db = asic_db
@@ -48,6 +50,12 @@ def get_queue_buffer_profile_id(
48
50
attr_list = [ field ]
49
51
fvs = self.asic_db.wait_for_fields(self.ASIC_QUEUE, sai_queue_id, attr_list)
52
53
+ if fvs[field] == self.OID_NULL:
54
+ attr_dict = {
55
+ field: self.OID_NULL
56
+ }
57
+ fvs = self.asic_db.wait_for_field_negative_match(self.ASIC_QUEUE, sai_queue_id, attr_dict)
58
59
return fvs[field]
60
61
def get_queue_buffer_profile_name(
0 commit comments