-
Notifications
You must be signed in to change notification settings - Fork 48
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
Issues applying policies #232
Comments
Hi. Thanks for opening this issue. When I tried to repro it, I got 2 errors with the latest version of the module:
I'll keep digging into this and see what I can figure out. |
I thought it might be something with the newer version. These were built using 1.4.253 and were working at the time. I ended up with a new laptop and am now using 1.4.334 and discovered the issue when I went to create a new site at the DR location. There was another issue with pool creation that I ended up tracking down to a module being totally commented out. I removed the comments and that got it working. Just couldn't figure out the VIP issue. Regrettably I didn't note which module it was that I fixed, but I'll try uninstalling and see if I can duplicate the issue to find out. |
Sorry for the delay, I uninstalled and re-installed 1.4.3334 to get a default build. What I found was Add-PoolMember calls Get-Node at line 64 ($ExistingNode = Get-Node -F5Session $F5Session -Address $Address -Name $NodeName -Partition $Partition -ErrorAction SilentlyContinue). However the Get-Node function is all commented out by default and doesn't load. This was the issue I got around by uncommenting out this function. However the above still exists Function Get-Node {<#.SYNOPSIS
.NOTES
} |
@tmccarthy349 I'm in kind of a tough spot. I'm switching jobs and after today I will no longer have access to LTMs on which to test the F5 PowerShell module. I'll post on DevCentral and maybe I can find someone there who can take over managing this module. |
@tmccarthy349 are you still having the issue? it looks like the commented out block was fixed. |
I'm not seeing policies added to the VIP. I'm using the example in Set-VirtualServer, and I can see the policies populated in $ProfileItems, however after running the following,
$vs | Add-Member -Force -Name 'policies' -Value $PolicyItems -MemberType NoteProperty
and
$vs | Set-VirtualServer
the VIP is unchanged.
PS C:\F5 Migration\CBTS DR\Fisdap> $ProfileItems
Name Value
kind tm:ltm:virtual:profiles:profilesstate
name Ascend_HTTPS
kind tm:ltm:virtual:profiles:profilesstate
name Ascend_OneConnect
kind tm:ltm:virtual:profiles:profilesstate
name websecurity
context clientside
name tcp-mobile-optimized
kind tm:ltm:virtual:profiles:profilesstate
context serverside
name tcp-lan-optimized
kind tm:ltm:virtual:profiles:profilesstate
context clientside
name Fisdap_Wildcard_Client
kind tm:ltm:virtual:profiles:profilesstate
The code involved
Read in the pool and node config file
$GetPoolInfo = import-csv "C:\F5 Migration\CBTS DR\Fisdap\FisdapPools.csv"
Read in the vip config file
$GetVIPInfo = import-csv "C:\F5 Migration\CBTS DR\Fisdap\FisdapVIPs.csv"
#Prompt for username and password
$user = Read-Host "UserName"
$passwd = Read-Host "Password" -AsSecureString
#Sets IP of the F5
$f5 = "..."
#Encrypts credentials
$mycreds = New-Object System.Management.Automation.PSCredential ("$user", $passwd)
#Establishes a session to the F5
New-F5Session -LTMName $f5 -LTMCredentials $mycreds -Default
The text was updated successfully, but these errors were encountered: