22.4R1, 23.1R1, 23.2R1: uses autoconf_traceoptions_type references a deprecated grouping, so the conf-system modules fail validation

オープン 初心者向け
#36 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発

調査の方向性

リリース 22.4R1、23.1R1、23.2R1 の junos、junos-es、junos-ex、junos-qfx、junos-nfx 向け *-conf-system モジュールを調査してください。まず traceoptions uses 文を、非推奨の autoconf_traceoptions_type grouping および対応する 23.2R2 モジュールと比較し、pyang を使って対象モジュールを検証してください。これらのモジュールが検証に合格すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

In 22.4R1, 23.1R1 and 23.2R1, the *-conf-system module of every family (junos, junos-es, junos-ex, junos-qfx, junos-nfx) marks the autoconf_traceoptions_type grouping status deprecated. The uses statement that references it, in system autoinstallation traceoptions, has no status, so it is current. RFC 7950 (section 7.21.2) says a current definition must not reference a deprecated one in the same module, so validators reject these modules:

$ pyang -p 22.4/22.4R1/common -p 22.4/22.4R1/junos-es/conf
22.4/22.4R1/junos-es/conf/[email protected]
22.4/22.4R1/junos-es/conf/[email protected]:7192: error: the "uses" definition is current, but the "grouping" it references is deprecated

(pyang 2.7.1)

In [email protected]:

yang
container traceoptions {
description "Autoconfiguration trace options";
status deprecated;
uses autoconf_traceoptions_type; // line 7192: current, by default
}
...
grouping autoconf_traceoptions_type { // line 9636
description "Trace options for autoconfiguration";
status deprecated;

Tools that require a valid module stop there. For example, the pyang plugin that junos-terraform uses to generate providers from these models can't generate a schema for any family in these three releases.

The grouping is not deprecated in releases up to 22.3R1 or from 23.2R2 on, so those releases validate. Either marking the uses statement status deprecated, or removing status deprecated from the grouping (as in 23.2R2), would fix it.

主要言語
言語のデータがありません
スター
116
フォーク
39
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Juniper/yang のほかの issue

Juniper/yang の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。