Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

PBF rules created with wrong path

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
networking

調査の方向性

Open panos/policies.py and locate the PBF profile XPath setup, starting with the self._xpaths.add_profile call mentioned in the issue. Confirm the path used for rule creation and verify that creating a PBF rule targets the documented rulebase/pbf/rules location.

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

説明

bug

The import for PolicyBaseFordwarding uses wong xpath to try creating rules

The xpath to use should be /config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/pbf/rules"

It tries on config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/pbf/rules which is documented on https://github.com/PaloAltoNetworks/pan-os-python/blob/develop/panos/policies.py

Change " self._xpaths.add_profile(value="/pbf/rules") " to self._xpaths.add_profile(value="/rulebase/pbf/rules")

Any attempt to create a PBF

Firewall is running version 10.x

主要言語
Python
スター
402
フォーク
199
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

PaloAltoNetworks/pan-os-python のほかの issue

PaloAltoNetworks/pan-os-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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