Forum Discussion
R-Series Tenant - Need to change Vlan tag
I need to change all of the vlans on my LTM-tenant (15.1.10.4) - The changes are on the tag not the name - I need to keep the names the same and change the tag numbers. [ vlan Core 1978 to vlan Core 978 - about 13 vlans total ].
Put the tenant in provisioned mode.
Started by deleting the vlan in the Host f5OS gui (removing the vlan from the LAG and the tenant - then deleting the vlan).
Then created a new vlan with the same name and different tag. Then added the vlan to the LAG and tenant.
Deployed the tenant.
R-Series LAG and tenant setup looks perfect.
Tenant still has the old vlan.
Found instructions for this procedure which include deleting the vlan from the tenant - which results in the error -- Cannot delete Resource vlan - because Virtual Server references it -- or something like that...
-Dave Mehlberg
What seems to work without affecting anything else is changing the tag in the bigip_base.conf file and reloading system.
Hello Dave, in my opinion the quickest thing to do would have been rewriting VLAN tag in the F5OS tenant, I'm pretty sure you can do it via command line. This way, every object that references the VLANs that are already configured wouldn't have required any change.
Since you've removed VLANs from the tenant already, then you'll need to manually look for objects that still reference the old VLANS, and then update the configuration to reference the new vlan.
You're likely to find them in these objects:
- Every SELF-IP in the "Network > Self IPs" menu that was referencing the old VLANS must be updated to match one of the new VLAN names
- There might be some VLAN-restricted Virtual Servers that requires updates (quickest way to find them would be CLI command: tmsh list ltm virtual all vlans ). If this is your case, you'll need to modify the "Enabled Vlans" list excluding the old objects
- When you're done with these two steps, try deleting the VLAN object from Network > VLANs menu. If it still won't let you do it,
- There might be some other objects as well that reference those VLANs in the config file, after you "fixed" the two points before, try running this CLI command: more /config/bigip.conf | grep "VLAN_NAME" -B10 to see what object it is and go fix it
Actually -- try and run the last command anyways, because if VLAN name is referenced in iRule syntax BIG-IP will let you delete the object it but your code won't match anymore
The original VLAN still exists on the tenant. When I tried to delete it, I received an error.
Knowing that, should I try to change the VLAN using CLI and modify the Bigip_Base.conf file?
Dave
Hello Dave,
sorry, I meant: since you deleted vlans from the Host already. Since it's the Host that pushes VLANs to configured tenants, you don't need to edit bigip_base.conf file on the tenant, networking configuration will be automatically passed by the F5OS hypervisor.Since now the host has correct VLAN configuration, and new VLANs have been pushed to the tenant, I believe the easiest way to resolve this issue will be matching the "correct" VLANs on network objects.
You can test how things were done on vCMP for this issue https://my.f5.com/manage/s/article/K15616 https://techdocs.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/vcmp-administration-viprion-13-0-0/2.html Also long time ago there was a bug with the API communication between F5OS and the tenants , so you can try the latest F5OS version with a test tenant on the latest 17.1 just in case if nothing works.
What seems to work without affecting anything else is changing the tag in the bigip_base.conf file and reloading system.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com