ordered-by is inconsistent between releases (apply-groups before 18.1R1, and ~580 other statements)

Đang mở
#39 1 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
48/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

Compare the apply-advanced grouping in configuration.yang for releases 16.1, 16.2R1, 17.1R1, 17.2R1, 17.3R1 and the *-conf-* modules for 17.4R1 with the 18.1R1 definition. Start by locating the grouping and the other statements mentioned in the comment below. Done means the affected definitions consistently specify the order shown as accurate for Junos; check the comment thread for the remaining statement list.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

In every release up to 17.4R1, the apply-advanced grouping, which gives every container its apply-groups and apply-groups-except, defines them without ordered-by user:

// 17.4R1, e.g. 17.4/17.4R1/junos-es/conf/[email protected]
grouping apply-advanced {
  leaf-list apply-groups {
    type string;
  }
  leaf-list apply-groups-except {
    type string;
  }

From 18.1R1 on they have it:

// 18.1R1
grouping apply-advanced {
  leaf-list apply-groups {
    ordered-by user;
    type string;
  }
  leaf-list apply-groups-except {
    ordered-by user;
    type string;
  }

The order of apply-groups is significant in Junos, because groups are applied in the order listed, so 18.1R1's definition is the accurate one. Without ordered-by user, a tool following the YANG treats the order as unimportant: it may reorder the groups, or not treat a reordering as a change.

Affected in this repo: configuration.yang in 16.1, 16.2R1, 17.1R1, 17.2R1 and 17.3R1 (all families), and the *-conf-* modules of junos, junos-es, junos-ex and junos-qfx in 17.4R1. Since the grouping is included in every container, this affects roughly 90,000 leaf-lists in each full model.

Other statements whose ordered-by differs between releases are listed in the comment below.

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.