Forum Discussion
DevBabu_124276
May 15, 2015Nimbostratus
non-existent vlan strange although vlan is present
root@(ltm1)(cfg-sync Standalone)(Active)(/Common)(tmos) list net vlan
net vlan Vlan212 {
if-index 128
tag 4092
}
my file
=======
ltm virtual test-http-vs {
destination 9.9.9.9:80
ip-protocol tcp
mask 255.255.255.255
profiles {
tcp {}
http {}
}
source 0.0.0.0/0
vlans {
Vlan212
}
vlans-enabled
}
when I try to verify file
root@(ltm1)(cfg-sync Standalone)(Active)(/Common)(tmos) load sys config verify file /var/tmp/test_vlan
Validating system configuration...
/defaults/asm_base.conf
/defaults/config_base.conf
/defaults/low_profile_base.conf
/defaults/wam_base.conf
/defaults/analytics_base.conf
/defaults/apm_saml_base.conf
/defaults/app_template_base.conf
/defaults/classification_base.conf
/defaults/daemon.conf
/defaults/fullarmor_gpo_base.conf
/defaults/profile_base.conf
/defaults/security_base.conf
/usr/share/monitors/base_monitors.conf
/usr/local/gtm/include/gtm_base_region_isp.conf
/usr/share/monitors/gtm_base_monitors.conf
Validating configuration...
/var/tmp/test_vlan
01070335:3: Virtual Server /Common/test-http-vs refers to nonexistent Vlan Vlan212
Unexpected Error: Validating configuration process failed.
root@(ltm1)(cfg-sync Standalone)(Active)(/Common)(tmos)
Why this guy is spitting out nonexistent vlan although i have Vlan212. It is doing same for other vlans too?
root@(ltm1)(cfg-sync Standalone)(Active)(/Common)(tmos) show sys version
Sys::Version
Main Package
Product BIG-IP
Version 11.3.0
Build 39.0
Edition VE Trial 11.3.0-HF1 (based on BIGIP 11.3.0HF6)
Date Mon Mar 24 14:01:16 PDT 2014
try
load sys config merge verify file /var/tmp/test_vlan
is probably expecting to verify an entire configuration in a file, not merge a config snippet with what is currently runningload sys config verify file /file
- shaggyNimbostratus
try
load sys config merge verify file /var/tmp/test_vlan
is probably expecting to verify an entire configuration in a file, not merge a config snippet with what is currently runningload sys config verify file /file
- shaggyNimbostratusi can't seem to edit my original answer: you can see in the list of files returned from the "load sys config verify.." command that /config/bigip_base.conf and /config/bigip.conf are not present - the F5 isn't taking those configurations into account when verifying your specific config snippet. merge is meant to merge config snippets - either pasted into the cli or contained in a file - with the rest of the configuration. word of warning though, merge will clobber existing configuration that has the same object name. if i'm using merge to create "ltm virtual www.mycompany.com_vs" and www.mycompany.com_vs already exists on the LTM, goodbye old www.mycompany.com_vs. it's great if you planned it that way, but very bad if you're stuck wondering where your prod vs went.
- DevBabuCirrusThanks Shaggy. That works
- shaggy_121467Cumulonimbus
try
load sys config merge verify file /var/tmp/test_vlan
is probably expecting to verify an entire configuration in a file, not merge a config snippet with what is currently runningload sys config verify file /file
- shaggy_121467Cumulonimbusi can't seem to edit my original answer: you can see in the list of files returned from the "load sys config verify.." command that /config/bigip_base.conf and /config/bigip.conf are not present - the F5 isn't taking those configurations into account when verifying your specific config snippet. merge is meant to merge config snippets - either pasted into the cli or contained in a file - with the rest of the configuration. word of warning though, merge will clobber existing configuration that has the same object name. if i'm using merge to create "ltm virtual www.mycompany.com_vs" and www.mycompany.com_vs already exists on the LTM, goodbye old www.mycompany.com_vs. it's great if you planned it that way, but very bad if you're stuck wondering where your prod vs went.
- DevBabuCirrusThanks Shaggy. That works
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects