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

Aperta
#39 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Nessun dato sulla lingua
Stelle
116
Fork
39
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Juniper/yang

Tutte le issue di Juniper/yang

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.