Skip to content

Commit 965af3b

Browse files
committed
yang: smart_switch dpu_id is defined as string
Passing an integer value in when the yang model is defined as a string is invalid. However, its possible the yang model itself is not proper as it seems to limit the value to 1-7. However, such a change would be out of scope for this patch series as we are just porting to libyang3.
1 parent cbfdfa8 commit 965af3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sonic-yang-models/tests/yang_model_pytests/test_smart_switch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,9 @@ def test_dpu_orchagent_zmq_port(self, yang_model, orchagent_zmq_port, error_mess
381381

382382
@pytest.mark.parametrize(
383383
"dpu_id, swbus_port, error_message", [
384-
(0, 23606, None),
385-
(1, 23607, None),
386-
(7, 23613, None)]
384+
("0", 23606, None),
385+
("1", 23607, None),
386+
("7", 23613, None)]
387387
)
388388
def test_remote_dpu_swbus_port(self, yang_model, dpu_id, swbus_port, error_message):
389389
data = {

0 commit comments

Comments
 (0)