Copy over self IPs from several partitions
Hello,
I'm preparing the migration of an active/standby cluster of 2 LTM devices to new virtual devices.
Per F5 support case I cannot use an UCS migration due to different trunk settings on both sides.
So I'm using the "merge file" feature as described in K81271448. We have 3 partitions so I exported the SelfIP's using 3 commands :
tmsh -c "cd /Common; list net self" > /var/local/scf/Common-selfip.txt
tmsh -c "cd /Partition1; list net self" > /var/local/scf/Partition1-selfip.txt
tmsh -c "cd /Partition2; list net self" > /var/local/scf/Partition2-selfip.txt
For the import I'm using 3 commands :
tmsh -c "cd /Common; load /sys config merge file Common-selfip.txt"
tmsh -c "cd /Partition1; load /sys config merge file Partition1-selfip.txt"
tmsh -c "cd /Partition2; load /sys config merge file Partition2-selfip.txt"
Import of /Common-selfip.txt went well, but for Partition1 and Partition2 I get this error :
01070978:3: The vlan (/Common/xxxxx) for the specified self IP (10.160.10.118) must be one of the vlans in the associated route domain (/Common/0). For example: 192.168.0.1%1234 for self IP in route-domain 1234.
I edited the Partition1-selfip.txt file and modified the IP to 10.160.10.118%1, the error for that entry has disappeared... but the SelfIP is not created (in any of the partitions) 😞
Could anyone please point me to the right set of commands to export/import all Self IP's in their respective partition ? That would be highly appreciated 🙂
Have a good day,
Gerald
I wonder if this is as simple as not setting a default route domain for your other partitions? Try to set that before the import, rather than modifying the IPs to put the route domain in with the %xxx syntax. You have to first define the route domain object (net route-domain), then set the partition to it.
admin@(west)(cfg-sync Standalone)(ModuleNotLicensed::Active)(/Common)(tmos)# create net route-domain rd_foo id 1234 vlans replace-all-with { con1 }
admin@(west)(cfg-sync Standalone)(ModuleNotLicensed::Active)(/Common)(tmos)# list auth partition foo all-properties
auth partition foo {
default-route-domain 0
description none
}
admin@(west)(cfg-sync Standalone)(ModuleNotLicensed::Active)(/Common)(tmos)# modify auth partition foo default-route-domain 1234
admin@(west)(cfg-sync Standalone)(ModuleNotLicensed::Active)(/Common)(tmos)# list auth partition foo all-properties
auth partition foo {
default-route-domain 1234
description none
}