24.2R1.17: generator debug output instead of a list key in default-policy
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 49/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- backend
Hướng nghiên cứu
Start with the 12 affected modules under 24.2/24.2R1.17/native/conf-and-rpcs/, then compare their default-policy statement with the 24.4R1 version. Check how the generator handles the list key in emit_list_key() and validate the affected modules with pyang 2.7.1. Done means the debug output is gone and all 12 modules parse successfully.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
In 24.2R1.17, the anti-virus default-policy statement is published as a list with a generator debug message where its key should be, which makes the modules unparseable:
yang
list default-policy {
DEBUG - Unhandled Scenario in emit_list_key()
description "Anti-virus default policy";
$ pyang -p 24.2/24.2R1.17/native/conf-and-rpcs/common/models
-p 24.2/24.2R1.17/native/conf-and-rpcs/junos-es/conf/models
24.2/24.2R1.17/native/conf-and-rpcs/junos-es/conf/models/[email protected]
[email protected]:5726: error: unterminated statement definition for keyword "DEBUG", looking at U
(pyang 2.7.1)
It appears in 12 files, the services, logical-systems and tenants modules of junos-es and junos-nfx, in both conf/models and conf-with-extensions/models, under 24.2/24.2R1.17/native/conf-and-rpcs/.
In 24.4R1 the same statement is a presence container:
yang
container default-policy {
presence "enable default-policy";
description "Anti-virus default policy";
So in 24.2R1.17 it probably should have been one too, and the generator hit an unhandled case in emit_list_key().
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 116
- Fork
- 39
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Juniper/yang
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
ordered-by is inconsistent between releases (apply-groups before 18.1R1, and ~580 other statements)Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
-
Add YANG for 26.2R1Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
README files do not include PTXĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 45/100
Issue tương tự
-
v3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
pluginkollektiv/antispam-bee#952 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PROJECT: website-redesign volunteers
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
thewca/worldcubeassociation.org#16981 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
polish
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:core kind:bug priority:p3 ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
fix: say "app" instead of "site" in the remove-app errorCó thể đã có người làm @jenilsoni01 đã nhận hôm nay. Đang mởarea: API good first issue size/xs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 92/100
DahanItamar/DockNest#354 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày