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

オープン
#37 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
49/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
領域
backend

調査の方向性

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.

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

説明

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().

主要言語
言語のデータがありません
スター
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 を短くまとめたダイジェスト。