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

DNS function #73

Merged
merged 5 commits into from
Feb 19, 2019
Merged

DNS function #73

merged 5 commits into from
Feb 19, 2019

Conversation

CedricMoreau
Copy link
Contributor

No description provided.

Get DNS information.

.DESCRIPTION
Get dns information about the device
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dns -> DNS

Set the dns mode to manual.

.EXAMPLE
Set-ArubaSWDns -mode Manual -server1 10.0.0.1 -server2 10.0.0.2 -domain powerarubasw.com
Copy link
Collaborator

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
#>
Copy link
Collaborator

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


.EXAMPLE
Set-ArubaSWDns -mode Manual
Set the dns mode to manual.
Copy link
Collaborator

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 ?


$url = "rest/v4/dns"

$conf = new-Object -TypeName PSObject
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new -> New

$conf | add-member -name "dns_config_mode" -membertype NoteProperty -Value $mode_status


if ( $PsBoundParameters.ContainsKey('server1') -and $PsBoundParameters.ContainsKey('server2') )
Copy link
Collaborator

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 ?

Copy link
Collaborator

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...

[Parameter (Mandatory=$false)]
[string]$server2,
[Parameter (Mandatory=$false)]
[array]$domain
Copy link
Collaborator

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
#>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing example test

Copy link
Collaborator

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...

[ValidateSet ("DHCP", "Manual")]
[string]$mode,
[Parameter (Mandatory=$false)]
[string]$server1,
Copy link
Collaborator

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
)
Copy link
Collaborator

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...

Copy link
Collaborator

@alagoutte alagoutte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need some change !

Copy link
Collaborator

@alagoutte alagoutte left a 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

@alagoutte alagoutte changed the title Dns function DNS function Feb 15, 2019
@alagoutte alagoutte self-assigned this Feb 18, 2019
@alagoutte alagoutte added this to the v0.7 milestone Feb 18, 2019
@alagoutte alagoutte added the enhancement New feature or request label Feb 18, 2019
@alagoutte alagoutte merged commit 0e178e8 into PowerAruba:master Feb 19, 2019
alagoutte added a commit to alagoutte/PowerArubaSW that referenced this pull request Feb 20, 2019
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)
alagoutte added a commit to alagoutte/PowerArubaSW that referenced this pull request Feb 21, 2019
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)
@alagoutte alagoutte mentioned this pull request Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants