Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkpoint gaia show dns.template #330

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions templates/checkpoint_gaia_show_dns.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Value DOMAIN (\S+)
Value List DNS_SERVERS (\S+)

Start
^DNS\ssetup
^Name\s+Value
^Domain\s+${DOMAIN}
^DNS\sserver\s+${DNS_SERVERS} -> Continue
^DNS\sserver
^\s*$$
^. -> Error
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ checkpoint_gaia_show_domainname.template, .*, checkpoint_gaia, show domainname
checkpoint_gaia_show_ipv6_route.template, .*, checkpoint_gaia, show ipv6 route
checkpoint_gaia_show_asset_all.template, .*, checkpoint_gaia, show asset all
checkpoint_gaia_show_route.template, .*, checkpoint_gaia, show route
checkpoint_gaia_show_dns.template, .*, checkpoint_gaia, show dns
checkpoint_gaia_show_lom.template, .*, checkpoint_gaia, show lom
checkpoint_gaia_fw_stat.template, .*, checkpoint_gaia, fw stat

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
parsed_sample:

- domain: 'test.com'
dns_servers:
- '1.1.1.1'
- '2.2.2.2'

7 changes: 7 additions & 0 deletions tests/checkpoint_gaia/show_dns/checkpoint_gaia_show_dns.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
DNS setup
Name Value

Domain test.com
DNS server 1.1.1.1
DNS server 2.2.2.2
DNS server