Skip to content

Commit bbf9929

Browse files
authored
docs: PanOS Upgrade Assurance documentation update (#1063)
Co-authored-by: alperenkose <alperenkose@users.noreply.github.com>
1 parent d6f270f commit bbf9929

File tree

8 files changed

+1009
-146
lines changed

8 files changed

+1009
-146
lines changed

products/panos/docs/panos-upgrade-assurance/api/check_firewall.md

Lines changed: 155 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -670,37 +670,114 @@ __Returns__
670670
* [`CheckStatus.FAIL`](/panos/docs/panos-upgrade-assurance/api/utils#class-checkstatus) when CPU utilization is equal to or above the threshold.
671671
* [`CheckStatus.ERROR`](/panos/docs/panos-upgrade-assurance/api/utils#class-checkstatus) when the data cannot be retrieved.
672672

673-
### `CheckFirewall.get_content_db_version`
673+
### `CheckFirewall.get_nics_snapshot`
674674

675675
```python
676-
def get_content_db_version() -> Dict[str, str]
676+
def get_nics_snapshot() -> SnapResult
677677
```
678678

679-
Get Content DB version.
679+
Get NICs information as a snapshot.
680680

681681
__Returns__
682682

683683

684-
`dict(str)`: To keep the standard of all `get` methods returning a dictionary this value is also returned as a dictionary in the following format:
684+
`SnapResult`: Object of [`SnapResult`](/panos/docs/panos-upgrade-assurance/api/utils#class-snapresult) class representing the result of the NICs snapshot operation.
685+
686+
### `CheckFirewall.get_routes_snapshot`
687+
688+
```python
689+
def get_routes_snapshot() -> SnapResult
690+
```
691+
692+
Get routes information for Legacy Routing Engine as a snapshot.
693+
694+
__Returns__
695+
696+
697+
`SnapResult`: Object of [`SnapResult`](/panos/docs/panos-upgrade-assurance/api/utils#class-snapresult) class representing the result of the routes snapshot operation.
698+
699+
### `CheckFirewall.get_bgp_peers_snapshot`
700+
701+
```python
702+
def get_bgp_peers_snapshot() -> SnapResult
703+
```
704+
705+
Get BGP peers information for Legacy Routing Engine as a snapshot.
706+
707+
__Returns__
708+
709+
710+
`SnapResult`: Object of [`SnapResult`](/panos/docs/panos-upgrade-assurance/api/utils#class-snapresult) class representing the result of the BGP peers snapshot operation.
711+
712+
### `CheckFirewall.get_license_snapshot`
713+
714+
```python
715+
def get_license_snapshot() -> SnapResult
716+
```
717+
718+
Get license information as a snapshot.
719+
720+
__Returns__
721+
722+
723+
`SnapResult`: Object of [`SnapResult`](/panos/docs/panos-upgrade-assurance/api/utils#class-snapresult) class representing the result of the license snapshot operation.
724+
725+
### `CheckFirewall.get_arp_table_snapshot`
726+
727+
```python
728+
def get_arp_table_snapshot() -> SnapResult
729+
```
730+
731+
Get ARP table information as a snapshot.
732+
733+
__Returns__
734+
735+
736+
`SnapResult`: Object of [`SnapResult`](/panos/docs/panos-upgrade-assurance/api/utils#class-snapresult) class representing the result of the ARP table snapshot operation.
737+
738+
### `CheckFirewall.get_content_db_version_snapshot`
739+
740+
```python
741+
def get_content_db_version_snapshot() -> SnapResult
742+
```
743+
744+
Get Content DB version as a snapshot.
745+
746+
To keep the standard of all snapshots represented as a dictionary, content version is also returned as a dictionary in the following format:
685747

686748
```python showLineNumbers
687749
{
688750
'version': 'xxxx-yyyy'
689751
}
690752
```
691753

692-
### `CheckFirewall.get_ip_sec_tunnels`
754+
__Returns__
755+
756+
757+
`SnapResult`: Object of [`SnapResult`](/panos/docs/panos-upgrade-assurance/api/utils#class-snapresult) class representing the result of the content DB version snapshot operation.
758+
759+
### `CheckFirewall.get_session_stats_snapshot`
693760

694761
```python
695-
def get_ip_sec_tunnels() -> Dict[str, dict]
762+
def get_session_stats_snapshot() -> SnapResult
696763
```
697764

698-
Extract information about IPSEC tunnels from all tunnel data retrieved from a device.
765+
Get session statistics as a snapshot.
699766

700767
__Returns__
701768

702769

703-
`dict`: Currently configured IPSEC tunnels. The returned value is similar to the example below. It can differ though depending on the version of PanOS:
770+
`SnapResult`: Object of [`SnapResult`](/panos/docs/panos-upgrade-assurance/api/utils#class-snapresult) class representing the result of the session statistics snapshot operation.
771+
772+
### `CheckFirewall.get_ip_sec_tunnels_snapshot`
773+
774+
```python
775+
def get_ip_sec_tunnels_snapshot() -> SnapResult
776+
```
777+
778+
Get IPSec tunnels information as a snapshot.
779+
780+
Currently configured IPSEC tunnels. The returned snapshot value is similar to the example below. It can differ though depending on the version of PanOS:
704781

705782
```python showLineNumbers title="Example"
706783
{
@@ -719,25 +796,90 @@ __Returns__
719796
}
720797
```
721798

722-
### `CheckFirewall.get_global_jumbo_frame`
799+
__Returns__
800+
801+
802+
`SnapResult`: Object of [`SnapResult`](/panos/docs/panos-upgrade-assurance/api/utils#class-snapresult) class representing the result of the IPSec tunnels snapshot operation.
803+
804+
### `CheckFirewall.get_fib_snapshot`
723805

724806
```python
725-
def get_global_jumbo_frame() -> Dict[str, bool]
807+
def get_fib_snapshot() -> SnapResult
726808
```
727809

728-
Get whether global jumbo frame configuration is set or not.
810+
Get FIB routes information for Legacy Routing Engine as a snapshot.
729811

730812
__Returns__
731813

732814

733-
`dict`: The global jumbo frame configuration.
815+
`SnapResult`: Object of [`SnapResult`](/panos/docs/panos-upgrade-assurance/api/utils#class-snapresult) class representing the result of the FIB routes snapshot operation.
816+
817+
### `CheckFirewall.get_global_jumbo_frame_snapshot`
818+
819+
```python
820+
def get_global_jumbo_frame_snapshot() -> SnapResult
821+
```
822+
823+
Get global jumbo frame configuration as a snapshot.
824+
825+
The global jumbo frame configuration. The returned snapshot value is similar to the example below.
734826

735827
```python showLineNumbers title="Example"
736828
{
737829
'mode': True
738830
}
739831
```
740832

833+
__Returns__
834+
835+
836+
`SnapResult`: Object of [`SnapResult`](/panos/docs/panos-upgrade-assurance/api/utils#class-snapresult) class representing the result of the global jumbo frame snapshot operation.
837+
838+
### `CheckFirewall.get_interfaces_mtu_snapshot`
839+
840+
```python
841+
def get_interfaces_mtu_snapshot(
842+
include_subinterfaces: bool = False) -> SnapResult
843+
```
844+
845+
Get interfaces MTU information as a snapshot.
846+
847+
__Parameters__
848+
849+
850+
- __include_subinterfaces__ (`bool, optional`): (defaults to False) Whether to include sub-interfaces in the snapshot.
851+
852+
__Returns__
853+
854+
855+
`SnapResult`: Object of [`SnapResult`](/panos/docs/panos-upgrade-assurance/api/utils#class-snapresult) class representing the result of the interfaces MTU snapshot operation.
856+
857+
### `CheckFirewall.get_are_routes_snapshot`
858+
859+
```python
860+
def get_are_routes_snapshot() -> SnapResult
861+
```
862+
863+
Get ARE routes information as a snapshot.
864+
865+
__Returns__
866+
867+
868+
`SnapResult`: Object of [`SnapResult`](/panos/docs/panos-upgrade-assurance/api/utils#class-snapresult) class representing the result of the ARE routes snapshot operation.
869+
870+
### `CheckFirewall.get_are_fib_snapshot`
871+
872+
```python
873+
def get_are_fib_snapshot() -> SnapResult
874+
```
875+
876+
Get ARE FIB routes information as a snapshot.
877+
878+
__Returns__
879+
880+
881+
`SnapResult`: Object of [`SnapResult`](/panos/docs/panos-upgrade-assurance/api/utils#class-snapresult) class representing the result of the ARE FIB routes snapshot operation.
882+
741883
### `CheckFirewall.run_readiness_checks`
742884

743885
```python
@@ -794,7 +936,7 @@ __Raises__
794936
__Returns__
795937

796938

797-
`dict`: The results of the executed snapshots.
939+
`dict`: The results of the executed snapshots, including status, reason, and snapshot data as dictionary values.
798940

799941
### `CheckFirewall.run_health_checks`
800942

products/panos/docs/panos-upgrade-assurance/api/exceptions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ Used when an exception about the missing keys in a dictionary is thrown.
7373

7474
Used when a snapshot element contains different properties in both snapshots.
7575

76+
## class `SnapshotNoneComparisonException`
77+
78+
Raised when attempting to compare None with dict in snapshot comparison.
79+
7680
## class `UnknownParameterException`
7781

7882
Used when one of the requested configuration parameters is not a valid.

0 commit comments

Comments
 (0)