forked from housepbass/napalm-panos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request napalm-automation-community#103 from itdependsnetw…
…orks/98-kc Fix Empty List of Interfaces
- Loading branch information
Showing
7 changed files
with
635 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
304 changes: 304 additions & 0 deletions
304
...get_interfaces/empty_interfaces/_show__config__candidate___candidate___config___show_.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,304 @@ | ||
<response status="success"><result><config urldb="paloaltonetworks" version="7.0.0"> | ||
<mgt-config> | ||
<users> | ||
<entry name="admin"> | ||
<phash>fnRL/G5lXVMug</phash> | ||
<permissions> | ||
<role-based> | ||
<superuser>yes</superuser> | ||
</role-based> | ||
</permissions> | ||
</entry> | ||
<entry name="ntc"> | ||
<permissions> | ||
<role-based> | ||
<superuser>yes</superuser> | ||
</role-based> | ||
</permissions> | ||
<phash>$1$vbxmfoed$3DpWw/eU1C7S5PUOqZnJ2.</phash> | ||
</entry> | ||
</users> | ||
</mgt-config> | ||
<shared> | ||
<application /> | ||
<application-group /> | ||
<service /> | ||
<service-group /> | ||
<botnet> | ||
<configuration> | ||
<http> | ||
<dynamic-dns> | ||
<enabled>yes</enabled> | ||
<threshold>5</threshold> | ||
</dynamic-dns> | ||
<malware-sites> | ||
<enabled>yes</enabled> | ||
<threshold>5</threshold> | ||
</malware-sites> | ||
<recent-domains> | ||
<enabled>yes</enabled> | ||
<threshold>5</threshold> | ||
</recent-domains> | ||
<ip-domains> | ||
<enabled>yes</enabled> | ||
<threshold>10</threshold> | ||
</ip-domains> | ||
<executables-from-unknown-sites> | ||
<enabled>yes</enabled> | ||
<threshold>5</threshold> | ||
</executables-from-unknown-sites> | ||
</http> | ||
<other-applications> | ||
<irc>yes</irc> | ||
</other-applications> | ||
<unknown-applications> | ||
<unknown-tcp> | ||
<destinations-per-hour>10</destinations-per-hour> | ||
<sessions-per-hour>10</sessions-per-hour> | ||
<session-length> | ||
<maximum-bytes>100</maximum-bytes> | ||
<minimum-bytes>50</minimum-bytes> | ||
</session-length> | ||
</unknown-tcp> | ||
<unknown-udp> | ||
<destinations-per-hour>10</destinations-per-hour> | ||
<sessions-per-hour>10</sessions-per-hour> | ||
<session-length> | ||
<maximum-bytes>100</maximum-bytes> | ||
<minimum-bytes>50</minimum-bytes> | ||
</session-length> | ||
</unknown-udp> | ||
</unknown-applications> | ||
</configuration> | ||
<report> | ||
<topn>100</topn> | ||
<scheduled>yes</scheduled> | ||
</report> | ||
</botnet> | ||
<local-user-database> | ||
<user /> | ||
</local-user-database> | ||
</shared> | ||
<devices> | ||
<entry name="localhost.localdomain"> | ||
<network> | ||
<interface> | ||
<ethernet /> | ||
</interface> | ||
<profiles> | ||
<monitor-profile> | ||
<entry name="default"> | ||
<interval>3</interval> | ||
<threshold>5</threshold> | ||
<action>wait-recover</action> | ||
</entry> | ||
</monitor-profile> | ||
</profiles> | ||
<ike> | ||
<crypto-profiles> | ||
<ike-crypto-profiles> | ||
<entry name="default"> | ||
<encryption> | ||
<member>aes-128-cbc</member> | ||
<member>3des</member> | ||
</encryption> | ||
<hash> | ||
<member>sha1</member> | ||
</hash> | ||
<dh-group> | ||
<member>group2</member> | ||
</dh-group> | ||
<lifetime> | ||
<hours>8</hours> | ||
</lifetime> | ||
</entry> | ||
<entry name="Suite-B-GCM-128"> | ||
<encryption> | ||
<member>aes-128-cbc</member> | ||
</encryption> | ||
<hash> | ||
<member>sha256</member> | ||
</hash> | ||
<dh-group> | ||
<member>group19</member> | ||
</dh-group> | ||
<lifetime> | ||
<hours>8</hours> | ||
</lifetime> | ||
</entry> | ||
<entry name="Suite-B-GCM-256"> | ||
<encryption> | ||
<member>aes-256-cbc</member> | ||
</encryption> | ||
<hash> | ||
<member>sha384</member> | ||
</hash> | ||
<dh-group> | ||
<member>group20</member> | ||
</dh-group> | ||
<lifetime> | ||
<hours>8</hours> | ||
</lifetime> | ||
</entry> | ||
</ike-crypto-profiles> | ||
<ipsec-crypto-profiles> | ||
<entry name="default"> | ||
<esp> | ||
<encryption> | ||
<member>aes-128-cbc</member> | ||
<member>3des</member> | ||
</encryption> | ||
<authentication> | ||
<member>sha1</member> | ||
</authentication> | ||
</esp> | ||
<dh-group>group2</dh-group> | ||
<lifetime> | ||
<hours>1</hours> | ||
</lifetime> | ||
</entry> | ||
<entry name="Suite-B-GCM-128"> | ||
<esp> | ||
<encryption> | ||
<member>aes-128-gcm</member> | ||
</encryption> | ||
<authentication> | ||
<member>none</member> | ||
</authentication> | ||
</esp> | ||
<dh-group>group19</dh-group> | ||
<lifetime> | ||
<hours>1</hours> | ||
</lifetime> | ||
</entry> | ||
<entry name="Suite-B-GCM-256"> | ||
<esp> | ||
<encryption> | ||
<member>aes-256-gcm</member> | ||
</encryption> | ||
<authentication> | ||
<member>none</member> | ||
</authentication> | ||
</esp> | ||
<dh-group>group20</dh-group> | ||
<lifetime> | ||
<hours>1</hours> | ||
</lifetime> | ||
</entry> | ||
</ipsec-crypto-profiles> | ||
<global-protect-app-crypto-profiles> | ||
<entry name="default"> | ||
<encryption> | ||
<member>aes-128-cbc</member> | ||
</encryption> | ||
<authentication> | ||
<member>sha1</member> | ||
</authentication> | ||
</entry> | ||
</global-protect-app-crypto-profiles> | ||
</crypto-profiles> | ||
</ike> | ||
<qos> | ||
<profile> | ||
<entry name="default"> | ||
<class> | ||
<entry name="class1"> | ||
<priority>real-time</priority> | ||
</entry> | ||
<entry name="class2"> | ||
<priority>high</priority> | ||
</entry> | ||
<entry name="class3"> | ||
<priority>high</priority> | ||
</entry> | ||
<entry name="class4"> | ||
<priority>medium</priority> | ||
</entry> | ||
<entry name="class5"> | ||
<priority>medium</priority> | ||
</entry> | ||
<entry name="class6"> | ||
<priority>low</priority> | ||
</entry> | ||
<entry name="class7"> | ||
<priority>low</priority> | ||
</entry> | ||
<entry name="class8"> | ||
<priority>low</priority> | ||
</entry> | ||
</class> | ||
</entry> | ||
</profile> | ||
</qos> | ||
<virtual-router> | ||
<entry name="default"> | ||
<protocol> | ||
<bgp> | ||
<enable>no</enable> | ||
<dampening-profile> | ||
<entry name="default"> | ||
<cutoff>1.25</cutoff> | ||
<reuse>0.5</reuse> | ||
<max-hold-time>900</max-hold-time> | ||
<decay-half-life-reachable>300</decay-half-life-reachable> | ||
<decay-half-life-unreachable>900</decay-half-life-unreachable> | ||
<enable>yes</enable> | ||
</entry> | ||
</dampening-profile> | ||
</bgp> | ||
</protocol> | ||
</entry> | ||
</virtual-router> | ||
</network> | ||
<deviceconfig> | ||
<system> | ||
<ip-address>10.0.0.90</ip-address> | ||
<netmask>255.255.255.0</netmask> | ||
<update-server>updates.paloaltonetworks.com</update-server> | ||
<update-schedule> | ||
<threats> | ||
<recurring> | ||
<weekly> | ||
<day-of-week>wednesday</day-of-week> | ||
<at>01:02</at> | ||
<action>download-only</action> | ||
</weekly> | ||
</recurring> | ||
</threats> | ||
</update-schedule> | ||
<timezone>US/Pacific</timezone> | ||
<service> | ||
<disable-telnet>yes</disable-telnet> | ||
<disable-http>yes</disable-http> | ||
</service> | ||
<hostname>test</hostname> | ||
<default-gateway>10.0.0.2</default-gateway> | ||
<dns-setting> | ||
<servers> | ||
<primary>8.8.8.8</primary> | ||
</servers> | ||
</dns-setting> | ||
</system> | ||
<setting> | ||
<config> | ||
<rematch>yes</rematch> | ||
</config> | ||
<management> | ||
<hostname-type-in-syslog>FQDN</hostname-type-in-syslog> | ||
</management> | ||
</setting> | ||
</deviceconfig> | ||
<vsys> | ||
<entry name="vsys1"> | ||
<application /> | ||
<application-group /> | ||
<zone /> | ||
<service /> | ||
<service-group /> | ||
<schedule /> | ||
<rulebase /> | ||
</entry> | ||
</vsys> | ||
</entry> | ||
</devices> | ||
</config></result></response> |
2 changes: 2 additions & 0 deletions
2
...ked_data/test_get_interfaces/empty_interfaces/_show__interface_all__interface___show_.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<response status="success"><result> | ||
</result></response> |
1 change: 1 addition & 0 deletions
1
test/unit/mocked_data/test_get_interfaces/empty_interfaces/expected_result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
Oops, something went wrong.