24.2R1.17: generator debug output instead of a list key in default-policy

Đang mở
#37 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Juniper/yang

Tất cả issue của Juniper/yang

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.