Skip to content

Commit 94fd578

Browse files
committed
add docs for web, update help text
1 parent 5052235 commit 94fd578

File tree

9 files changed

+148
-21
lines changed

9 files changed

+148
-21
lines changed

docs/_config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
title: vNugglets.VDNetworking
2+
description: A PowerShell module for VMware vSphere Virtual Distributed Networking Management
3+
google_analytics:
4+
show_downloads: true
5+
theme: jekyll-theme-cayman

docs/examples.md

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
### Examples for vNugglets.VDNetworking PowerShell module for VMware vSphere Virtual Distributed Networking management
2+
3+
#### `Get-VNVDTrafficFilterPolicyConfig`: Get the VDTrafficFilterPolicy configuration for the given VDPortgroup(s) from VDSwitch(es)
4+
5+
```PowerShell
6+
## Get the TrafficFilter policy config for the given VDPortgroup
7+
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficFilterPolicyConfig
8+
```
9+
10+
#### `Get-VNVDTrafficRule`: Get the VDTrafficRule for the TrafficRuleset from the given VDTrafficFilterPolicy configuration from VDPortgroup(s)
11+
12+
```PowerShell
13+
## Get the traffic rules from the TrafficeRuleset, which was gotten from the vDPG's TrafficFilterPolicyConfig
14+
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficFilterPolicyConfig | Get-VNVDTrafficRuleSet | Get-VNVDTrafficRule
15+
16+
## Get traffic rules whose name is like "myTestRule*"
17+
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficFilterPolicyConfig | Get-VNVDTrafficRuleSet | Get-VNVDTrafficRule myTestRule*
18+
```
19+
20+
#### `Get-VNVDTrafficRuleAction`: Get the VDTrafficRule Action for the TrafficRule from the given VDTrafficFilterPolicy configuration from VDPortgroup(s)
21+
22+
```PowerShell
23+
## Get the traffic rules action from the traffic rules from the TrafficeRuleset property of the TrafficFilterPolicyConfig
24+
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficFilterPolicyConfig | Get-VNVDTrafficRule | Get-VNVDTrafficRuleAction
25+
```
26+
27+
#### `Get-VNVDTrafficRuleQualifier`: Get the VDTrafficRule Qualifier for the TrafficRule from the given VDTrafficFilterPolicy configuration from VDPortgroup(s)
28+
29+
```PowerShell
30+
## Get the traffic rules qualifiers from the traffic rules from the TrafficeRuleset property of the TrafficFilterPolicyConfig
31+
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficFilterPolicyConfig | Get-VNVDTrafficRule | Get-VNVDTrafficRuleQualifier
32+
```
33+
34+
#### `Get-VNVDTrafficRuleSet`: Get the DvsTrafficRuleset for the given VDTrafficFilterPolicy configuration from VDPortgroup(s), or from VDPortgroup(s) directly
35+
36+
```PowerShell
37+
## Get the traffic ruleset from the TrafficFilterPolicyConfig object of a given vDPG. Can also get the ruleset from just the vDPG, but this "from TrafficFilterPolicyConfig" method is to help show the relationship between the vDPG, the TrafficFilterPolicyConfig, and the TrafficRuleset
38+
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficFilterPolicyConfig | Get-VNVDTrafficRuleSet
39+
40+
## Get the traffic ruleset directly from the given vDPG
41+
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficRuleSet
42+
```
43+
44+
#### `New-VNVDTrafficRule`: Make new Traffic Rule and add it to the given Traffic Ruleset of a vDPortgroup traffic filter policy
45+
46+
```PowerShell
47+
## Create a new Traffic Rule that has two Qualifiers and add it to the given TrafficRuleset from the given vDPortgroup. The new Traffic Rule allows vMotion traffic from given source network
48+
Get-VDPortGroup myVDPG0 | Get-VNVDTrafficRuleSet | New-VNVDTrafficRule -Name "Allow vMotion from source network" -Action (New-VNVDTrafficRuleAction -Allow) -Qualifier (New-VNVDTrafficRuleQualifier -SystemTrafficType vMotion), (New-VNVDTrafficRuleQualifier -SourceIpAddress 10.0.0.0/8)
49+
50+
## Create a new Traffic Rule that has two Qualifiers and add it to the given TrafficRuleset from the given vDPortgroup. The new Traffic Rule adds a DSCP tag with value 8 to VM traffic from given source IP
51+
Get-VDPortGroup myVDPG0 | Get-VNVDTrafficRuleSet | New-VNVDTrafficRule -Name "Apply DSCP tag to VM traffic from given address" -Action (New-VNVDTrafficRuleAction -DscpTag 8) -Qualifier (New-VNVDTrafficRuleQualifier -SystemTrafficType virtualMachine), (New-VNVDTrafficRuleQualifier -SourceIpAddress 172.16.1.2) -Direction outgoingPackets
52+
```
53+
54+
#### `New-VNVDTrafficRuleAction`: Make new VMware.Vim.DvsNetworkRuleAction, for use in creating vDPortgroup traffic filter policy rule. Currently supports creating Rule Actions of types DvsAcceptNetworkRuleAction ("Allow"), DvsDropNetworkRuleAction, and DvsUpdateTagNetworkRuleAction
55+
56+
```PowerShell
57+
## Create a new DvsAcceptNetworkRuleAction object that will specify an action of "Allow packet"
58+
New-VNVDTrafficRuleAction -Allow
59+
60+
## Create a new DvsDropNetworkRuleAction object that will specify an action of "Drop packet"
61+
New-VNVDTrafficRuleAction -Drop
62+
63+
## Create a new DvsUpdateTagNetworkRuleAction object that will specify an action of "tag with DSCP value of 8, and clear the QoS tag of packet"
64+
New-VNVDTrafficRuleAction -DscpTag 8 -QosTag 0
65+
```
66+
67+
#### `New-VNVDTrafficRuleQualifier`: Make new VMware.Vim.DvsNetworkRuleQualifier, for use in creating vDPortgroup traffic filter policy rule
68+
69+
```PowerShell
70+
## Create a new DvsSystemTrafficNetworkRuleQualifier for traffic that is vMotion
71+
New-VNVDTrafficRuleQualifier -SystemTrafficType vMotion
72+
73+
## Create a new DvsSystemTrafficNetworkRuleQualifier for traffic that is _not_ Management traffic
74+
New-VNVDTrafficRuleQualifier -SystemTrafficType Management -Negate
75+
76+
## Create a new DvsIpNetworkRuleQualifier for traffice from the given source IP that is _not_ to the given destination network, using TCP (6) protocol, and that is from source ports of 443 or 444
77+
New-VNVDTrafficRuleQualifier -SourceIpAddress 172.16.1.2 -DestinationIpAddress 10.0.0.0/8 -NegateDestinationIpAddress -Protocol 6 -SourceIpPort 443-444
78+
79+
## Create a new DvsMacNetworkRuleQualifier for traffic from the source MAC address, that is _not_ to the destination MAC, that is using EtherType 0x8922, and that is not on VLAN 10
80+
New-VNVDTrafficRuleQualifier -SourceMacAddress 00:00:56:01:23:45 -DestinationMacAddress 00:00:56:78:90:12 -NegateDestinationMacAddress -EtherTypeProtocol 0x8922 -VlanId 10 -NegateVlanId
81+
82+
## Create a new DvsMacNetworkRuleQualifier for traffic from the any source MAC address in the given MAC range and that is on VLAN 22
83+
New-VNVDTrafficRuleQualifier -SourceMacAddress 00:A0:C9:14:C8:29/FF:FF:00:FF:00:FF -VlanId 22
84+
```
85+
86+
#### `Remove-VNVDTrafficRule`: Remove a Traffic Rule from the given Traffic Ruleset of a vDPortgroup traffic filter policy
87+
88+
```PowerShell
89+
## Get the TrafficRules named like "test*" from the TrafficRuleSet for the given vDPortGroup and delete them
90+
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficRuleSet | Get-VNVDTrafficRule -Name test* | Remove-VNVDTrafficRule
91+
```
92+
93+
#### `Set-VNVDTrafficRuleSet`: Set attributes on the DvsTrafficRuleset (like Enable/Disable it) for the given TrafficRuleSet
94+
95+
```PowerShell
96+
## Get the traffic ruleset from the TrafficFilterPolicyConfig object of a given vDPG and Enable it
97+
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficFilterPolicyConfig | Get-VNVDTrafficRuleSet | Set-VNVDTrafficRuleSet -Enabled
98+
99+
## Get the traffic ruleset from the given vDPG and Disable it
100+
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficRuleSet | Set-VNVDTrafficRuleSet -Enabled:$false
101+
```
102+

docs/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### vNugglets.VDNetworking PowerShell module for VMware vSphere Virtual Distributed Networking management
2+
3+
Examples for the cmdlets (or, see each cmdlet's help for the examples): [examples.md](examples.md)

makeExamplesMd.ps1

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## some code to put the cmdlets' examples into MD format for, say, examples.md in the docs
2+
3+
"### Examples for vNugglets.VDNetworking PowerShell module for VMware vSphere Virtual Distributed Networking management`n"
4+
Get-Command -Module vNugglets.VDNetworking -PipelineVariable oThisCommand | Foreach-Object {
5+
## get the full help for this cmdlet
6+
$oHelp_ThisCommand = Get-Help -Full -Name $oThisCommand.Name
7+
## make a string with the example description(s) and example code(s) for this cmdlet
8+
$strExampleCodeBlock = ($oHelp_ThisCommand.examples.example | Foreach-Object {
9+
"`n## {0}`n{1}" -f ($($_.remarks.Text | Where-Object {-not [System.String]::IsNullOrEmpty($_)}) -join "`n"), $_.code
10+
}) -join "`n"
11+
## make a string that has the cmdlet name and description followed by a code block with example(s)
12+
"#### ``{0}``: {1}`n`n``````PowerShell{2}`n```````n" -f `
13+
$oThisCommand.Name,
14+
$oHelp_ThisCommand.Description.Text,
15+
$strExampleCodeBlock
16+
} ## end Foreach-Object

vNugglets.VDNetworking/GetItems.ps1

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
function Get-VNVDTrafficFilterPolicyConfig {
22
<# .Description
3-
Function to get the VDTrafficFilterPolicy configuration for the given VDPortgroup(s) from VDSwitch(es). The VDTrafficFilterPolicy is the item that can be enabled/disabled at the vDPG level.
3+
Get the VDTrafficFilterPolicy configuration for the given VDPortgroup(s) from VDSwitch(es)
44
55
.Example
66
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficFilterPolicyConfig
7+
Get the TrafficFilter policy config for the given VDPortgroup
78
89
.Outputs
9-
VNVDTrafficFilterPolicyConfig with properties with at least VMware.Vim.DvsTrafficFilterConfig and VMware.Vim.DistributedVirtualPortgroup for the TrafficFilter policy confi
10+
VNVDTrafficFilterPolicyConfig with properties with at least VMware.Vim.DvsTrafficFilterConfig and VMware.Vim.DistributedVirtualPortgroup for the TrafficFilter policy config
1011
#>
1112
[CmdletBinding()]
1213
[OutputType([VNVDTrafficFilterPolicyConfig])]
@@ -30,7 +31,7 @@ function Get-VNVDTrafficFilterPolicyConfig {
3031

3132
function Get-VNVDTrafficRuleSet {
3233
<# .Description
33-
Function to get the DvsTrafficRuleset for the given VDTrafficFilterPolicy configuration from VDPortgroup(s), or from VDPortgroup(s) directly.
34+
Get the DvsTrafficRuleset for the given VDTrafficFilterPolicy configuration from VDPortgroup(s), or from VDPortgroup(s) directly
3435
3536
.Example
3637
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficFilterPolicyConfig | Get-VNVDTrafficRuleSet
@@ -93,15 +94,15 @@ function Get-VNVDTrafficRuleSet {
9394

9495
function Get-VNVDTrafficRule {
9596
<# .Description
96-
Function to get the VDTrafficRule for the TrafficRuleset from the given VDTrafficFilterPolicy configuration from VDPortgroup(s).
97+
Get the VDTrafficRule for the TrafficRuleset from the given VDTrafficFilterPolicy configuration from VDPortgroup(s)
9798
9899
.Example
99100
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficFilterPolicyConfig | Get-VNVDTrafficRuleSet | Get-VNVDTrafficRule
100101
Get the traffic rules from the TrafficeRuleset, which was gotten from the vDPG's TrafficFilterPolicyConfig
101102
102103
.Example
103104
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficFilterPolicyConfig | Get-VNVDTrafficRuleSet | Get-VNVDTrafficRule myTestRule*
104-
Get traffic rules whose name is like "myTestRule*".
105+
Get traffic rules whose name is like "myTestRule*"
105106
106107
.Outputs
107108
VNVDTrafficRule with at least properties for VMware.Vim.DvsTrafficRule and VMware.Vim.DistributedVirtualPortgroup for the Traffic rule set rule
@@ -144,7 +145,7 @@ function Get-VNVDTrafficRule {
144145

145146
function Get-VNVDTrafficRuleQualifier {
146147
<# .Description
147-
Function to get the VDTrafficRule Qualifier for the TrafficRule from the given VDTrafficFilterPolicy configuration from VDPortgroup(s).
148+
Get the VDTrafficRule Qualifier for the TrafficRule from the given VDTrafficFilterPolicy configuration from VDPortgroup(s)
148149
149150
.Example
150151
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficFilterPolicyConfig | Get-VNVDTrafficRule | Get-VNVDTrafficRuleQualifier
@@ -179,7 +180,7 @@ function Get-VNVDTrafficRuleQualifier {
179180

180181
function Get-VNVDTrafficRuleAction {
181182
<# .Description
182-
Function to get the VDTrafficRule Action for the TrafficRule from the given VDTrafficFilterPolicy configuration from VDPortgroup(s).
183+
Get the VDTrafficRule Action for the TrafficRule from the given VDTrafficFilterPolicy configuration from VDPortgroup(s)
183184
184185
.Example
185186
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficFilterPolicyConfig | Get-VNVDTrafficRule | Get-VNVDTrafficRuleAction

vNugglets.VDNetworking/NewItems.ps1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function New-VNVDTrafficRuleQualifier {
4545
[parameter(ParameterSetName="IpNetworkRuleQualifier")][Switch]$NegateSourceIpAddress,
4646

4747
## IP qualifier of the traffic destination, either a single IP, or a CIDR-notation network. If this parameter is omitted (or $null), it will match "any IPv4 or any IPv6 address". Currently accepts IPv4 address / CIDR network
48-
# See description of parameter -SourceIpAddress for more information.
48+
# See description of parameter -SourceIpAddress for more information
4949
[parameter(ParameterSetName="IpNetworkRuleQualifier")][ValidateScript({($_ -match "^(\d{1,3}\.){3}\d{1,3}(/\d{1,2})?$") -and ([System.Net.IPAddress]::TryParse($_.Split("/")[0], [ref]$null))})]
5050
[String]$DestinationIpAddress,
5151

@@ -70,16 +70,16 @@ function New-VNVDTrafficRuleQualifier {
7070
## Switch: negate the destination IP port? If $true, then this has the effect of "not destination IP port", like "not traffic to port 443"
7171
[parameter(ParameterSetName="IpNetworkRuleQualifier")][Switch]$NegateDestinationIpPort,
7272

73-
## TCP flag. The valid values can be found at RFC 3168.
73+
## TCP flag. The valid values can be found at RFC 3168
7474
[parameter(ParameterSetName="IpNetworkRuleQualifier")][Int]$TCPFlag,
7575

7676
## Switch: negate TCP flag? If $true, then this has the effect of "not this TCP flag", like "not traffic to with given TCP flag"
7777
[parameter(ParameterSetName="IpNetworkRuleQualifier")][Switch]$NegateTCPFlag,
7878

7979

80-
## Single MAC address or a MAC address range of the traffic source. If this parameter is omitted (or $null), it will match "any MAC address".
80+
## Single MAC address or a MAC address range of the traffic source. If this parameter is omitted (or $null), it will match "any MAC address"
8181
#
82-
# The MAC address "range" is a mask that is used in matching the MAC address. A MAC address is considered matched if the "and" operation of the mask on the MAC address and address yields the same result. For example, a MAC of "00:A0:FF:14:FF:29" is considered matched for a address of "00:A0:C9:14:C8:29" and a mask of "FF:FF:00:FF:00:FF".
82+
# The MAC address "range" is a mask that is used in matching the MAC address. A MAC address is considered matched if the "and" operation of the mask on the MAC address and address yields the same result. For example, a MAC of "00:A0:FF:14:FF:29" is considered matched for a address of "00:A0:C9:14:C8:29" and a mask of "FF:FF:00:FF:00:FF"
8383
#
8484
# Single MAC example: 00:00:56:01:23:45
8585
# MAC range example: 00:A0:C9:14:C8:29/FF:FF:00:FF:00:FF
@@ -88,21 +88,21 @@ function New-VNVDTrafficRuleQualifier {
8888
## Switch: negate the source MAC address? If $true, then this has the effect of "not source MAC", like "not traffic from 00:00:56:01:23:45"
8989
[parameter(ParameterSetName="MacNetworkRuleQualifier")][Switch]$NegateSourceMacAddress,
9090

91-
## Single MAC address or a MAC address range of the traffic destination. If this parameter is omitted (or $null), it will match "any MAC address".
91+
## Single MAC address or a MAC address range of the traffic destination. If this parameter is omitted (or $null), it will match "any MAC address"
9292
#
93-
# The MAC address "range" is a mask that is used in matching the MAC address. See description of parameter -SourceMacAddress for more information.
93+
# The MAC address "range" is a mask that is used in matching the MAC address. See description of parameter -SourceMacAddress for more information
9494
[parameter(ParameterSetName="MacNetworkRuleQualifier")][ValidatePattern("^([a-f0-9]{2}:){5}[a-f0-9]{2}(/([a-f0-9]{2}:){5}[a-f0-9]{2})?$")][String]$DestinationMacAddress,
9595

9696
## Switch: negate the destination MAC address? If $true, then this has the effect of "not destination MAC", like "not traffic to 00:00:56:01:23:45"
9797
[parameter(ParameterSetName="MacNetworkRuleQualifier")][Switch]$NegateDestinationMacAddress,
9898

99-
## EtherType protocol used. Example: 0x8922. This corresponds to the EtherType field in Ethernet frame. The valid values can be found from IEEE list at: http://standards.ieee.org/regauth/ as mentioned in RFC 5342 (for example, in text format at http://standards-oui.ieee.org/ethertype/eth.txt).
99+
## EtherType protocol used. Example: 0x8922. This corresponds to the EtherType field in Ethernet frame. The valid values can be found from IEEE list at: http://standards.ieee.org/regauth/ as mentioned in RFC 5342 (for example, in text format at http://standards-oui.ieee.org/ethertype/eth.txt)
100100
[parameter(ParameterSetName="MacNetworkRuleQualifier")][Int]$EtherTypeProtocol,
101101

102102
## Switch: negate EtherType protocol? If $true, then this has the effect of "not this ethertype protocol", like "not traffic to using ethertype protocol 0x8922"
103103
[parameter(ParameterSetName="MacNetworkRuleQualifier")][Switch]$NegateEtherTypeProtocol,
104104

105-
## VLAN ID for rule qualifier.
105+
## VLAN ID for rule qualifier
106106
[parameter(ParameterSetName="MacNetworkRuleQualifier")][Int]$VlanId,
107107

108108
## Switch: negate VLAN ID? If $true, then this has the effect of "not this VLAN ID", like "not traffic to using VLAN ID 1234"
@@ -326,7 +326,7 @@ function New-VNVDTrafficRule {
326326
# "List of Network rule qualifiers. 'AND' of this array of network rule qualifiers is applied as one network traffic rule. For TrafficRule belonging to DvsFilterPolicy: There can be a maximum of 1 DvsIpNetworkRuleQualifier, 1 DvsMacNetworkRuleQualifier and 1 DvsSystemTrafficNetworkRuleQualifier for a total of 3 qualifiers"
327327
[parameter(Mandatory=$true)][VMware.Vim.DvsNetworkRuleQualifier[]]$Qualifier,
328328

329-
## Order in which to place this rule in a rule set. "Sequence of this rule".
329+
## Order in which to place this rule in a rule set. "Sequence of this rule"
330330
[Int]$Sequence,
331331

332332
## Given vDPortgroup's TrafficRuleset to which to add this new VDTrafficRule

vNugglets.VDNetworking/RemoveItems.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ function Remove-VNVDTrafficRule {
88
99
.Example
1010
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficRuleSet | Get-VNVDTrafficRule -Name test* | Remove-VNVDTrafficRule
11-
Get the TrafficRules named like "test*" from the TrafficRuleSet for the given vDPortGroup and delete them.
11+
Get the TrafficRules named like "test*" from the TrafficRuleSet for the given vDPortGroup and delete them
1212
1313
.Outputs
14-
Null. Removes rule(s) as directed, returning nothing upon success.
14+
Null. Removes rule(s) as directed, returning nothing upon success
1515
#>
1616
[CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact="High")]
1717
param (

vNugglets.VDNetworking/SetItems.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ function Set-VNVDTrafficRuleSet {
44
55
.Example
66
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficFilterPolicyConfig | Get-VNVDTrafficRuleSet | Set-VNVDTrafficRuleSet -Enabled
7-
Get the traffic ruleset from the TrafficFilterPolicyConfig object of a given vDPG and Enable it.
7+
Get the traffic ruleset from the TrafficFilterPolicyConfig object of a given vDPG and Enable it
88
99
.Example
1010
Get-VDSwitch -Name myVDSw0 | Get-VDPortGroup -Name myVDPG0 | Get-VNVDTrafficRuleSet | Set-VNVDTrafficRuleSet -Enabled:$false
11-
Get the traffic ruleset from the given vDPG and Disable it.
11+
Get the traffic ruleset from the given vDPG and Disable it
1212
1313
.Outputs
1414
VNVDTrafficRuleSet with properties with at least VMware.Vim.DvsTrafficRuleset and VMware.Vim.DistributedVirtualPortgroup for the Traffic rule set

vNugglets.VDNetworking/vNugglets.VDNetworking_SupportingFunctions.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function _Set-VNVDTrafficRuleset_helper {
3131
## Operation to take on the TrafficRuleSet's Rules array with the given TrafficRule(s). "Add" the rule to the array, "Remove" the rule from the array, or "Overwrite" the array to be just the given rule(s)
3232
[parameter(Mandatory=$true, ParameterSetName="ActOnRules")][ValidateSet("Add", "Remove", "Overwrite")][String]$RuleOperation,
3333

34-
## Switch: enable the RuleSet? And, -Enabled:$false disables the Ruleset.
34+
## Switch: enable the RuleSet? And, -Enabled:$false disables the Ruleset
3535
[Switch]$Enabled
3636
) ## end param
3737

0 commit comments

Comments
 (0)