Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

PBF rules created with wrong path

Đang mở
#577 0 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ó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
networking

Hướng nghiên cứu

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.

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

Mô tả

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

Ngôn ngữ chính
Python
Star
402
Fork
200
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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 PaloAltoNetworks/pan-os-python

Tất cả issue của PaloAltoNetworks/pan-os-python

Issue tương tự

Thêm issue về Python

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.