-
Notifications
You must be signed in to change notification settings - Fork 9
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
DNS function #73
DNS function #73
Conversation
PowerArubaSW/Public/DNS.ps1
Outdated
Get DNS information. | ||
|
||
.DESCRIPTION | ||
Get dns information about the device |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dns -> DNS
PowerArubaSW/Public/DNS.ps1
Outdated
Set the dns mode to manual. | ||
|
||
.EXAMPLE | ||
Set-ArubaSWDns -mode Manual -server1 10.0.0.1 -server2 10.0.0.2 -domain powerarubasw.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use example network and example domain name (exemple.org)
|
||
.EXAMPLE | ||
Set-ArubaSWDns -mode Manual -server1 10.0.0.1 -server2 10.0.0.2 -domain powerarubasw.com | ||
#> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a description to example
PowerArubaSW/Public/DNS.ps1
Outdated
|
||
.EXAMPLE | ||
Set-ArubaSWDns -mode Manual | ||
Set the dns mode to manual. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a example with DHCP mode ?
PowerArubaSW/Public/DNS.ps1
Outdated
|
||
$url = "rest/v4/dns" | ||
|
||
$conf = new-Object -TypeName PSObject |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new -> New
PowerArubaSW/Public/DNS.ps1
Outdated
$conf | add-member -name "dns_config_mode" -membertype NoteProperty -Value $mode_status | ||
|
||
|
||
if ( $PsBoundParameters.ContainsKey('server1') -and $PsBoundParameters.ContainsKey('server2') ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really needed ? the other case don't work ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can look here i think it is no needed...
PowerArubaSW/Public/DNS.ps1
Outdated
[Parameter (Mandatory=$false)] | ||
[string]$server2, | ||
[Parameter (Mandatory=$false)] | ||
[array]$domain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be set it is a array of string ?
|
||
.EXAMPLE | ||
Remove-ArubaSWDns -server1 none -server2 none -domain none | ||
#> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing example test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and it is the same example...
PowerArubaSW/Public/DNS.ps1
Outdated
[ValidateSet ("DHCP", "Manual")] | ||
[string]$mode, | ||
[Parameter (Mandatory=$false)] | ||
[string]$server1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use boolean ?
[array]$domain, | ||
[Parameter(Mandatory = $false)] | ||
[switch]$noconfirm | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With don't remove ALL stuff and use Set- for unconfigured if needed...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need some change !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 minors issues before merge
4 new cmdlets * Support of PowerShell (Core) 6 (tested on Linux/Ubuntu and MacOS) (PowerAruba#74) * new parameter (-SkipCertificateCheck) when want to connect using HTTPS to unsecure switch (with no valid certificate) (PowerAruba#74) * Adding DNS support (Get/Set/Remove DNS server and domain names)( PowerAruba#72 PowerAruba#73) * Fix using Get-ArubaSWSystemStatus with VSF/Stacked Switch (PowerAruba#75)
4 new cmdlets * Support of PowerShell (Core) 6 (tested on Linux/Ubuntu and MacOS) (PowerAruba#74) * new parameter (-SkipCertificateCheck) when want to connect using HTTPS to unsecure switch (with no valid certificate) (PowerAruba#74) * Adding DNS support (Get/Set/Remove DNS server and domain names)( PowerAruba#72 PowerAruba#73) * Fix using Get-ArubaSWSystemStatus with VSF/Stacked Switch (PowerAruba#75)
No description provided.