Closed azahajkiewicz closed 3 years ago
To clarify: Virtual can be configured in three ways:
Enabled on all vlans (no property in VS):
ltm virtual /Common/vs {
creation-time 2021-08-20:07:45:22
destination /Common/10.144.18.33:0
ip-protocol tcp
last-modified-time 2021-08-20:07:48:29
mask 255.255.255.255
profiles {
/Common/tcp { }
}
source 0.0.0.0/24
translate-address enabled
translate-port disabled
}
-------> no vlan related property in AS3 declaration
Enabled on a vlan(s):
ltm virtual /Common/vs {
creation-time 2021-08-20:07:45:22
destination /Common/10.144.18.33:0
ip-protocol tcp
last-modified-time 2021-08-20:07:48:29
mask 255.255.255.255
profiles {
/Common/tcp { }
}
source 0.0.0.0/24
translate-address enabled
translate-port disabled
vlans {
/Common/vlan_internal
}
vlans-enabled
}
or
ltm virtual /Common/vs {
creation-time 2021-08-20:07:45:22
destination /Common/10.144.18.33:0
ip-protocol tcp
last-modified-time 2021-08-20:07:48:29
mask 255.255.255.255
profiles {
/Common/tcp { }
}
source 0.0.0.0/24
translate-address enabled
translate-port disabled
vlans-enabled
}
-------> allowVlans property in AS3 declaration (either list or empty list): See https://github.com/f5devcentral/f5-as3-config-converter/issues/34#issuecomment-857196796 - I am not sure if Charon should not support it, BIG-IP accepts such configuration.
"allowVlans": [
"/Common/vlan_internal"
],
or
"allowVlans": [],
ltm virtual /Common/VS_http {
creation-time 2021-08-12:06:09:23
description "Performance HTTP Virtual"
destination /Common/10.144.18.33:80
ip-protocol tcp
last-modified-time 2021-08-20:11:16:00
mask 255.255.255.255
pool /Common/http_pool
profiles {
/Common/fasthttp { }
}
source 0.0.0.0/24
translate-address enabled
translate-port enabled
vlans {
/Common/vlan_internal
}
}
(vlans-disabled property is the default one, so not necessary needs to be listed explicitly)
or:
ltm virtual /Common/VS_http {
creation-time 2021-08-12:06:09:23
description "Performance HTTP Virtual"
destination /Common/10.144.18.33:80
ip-protocol tcp
last-modified-time 2021-08-20:11:16:00
mask 255.255.255.255
pool /Common/http_pool
profiles {
/Common/fasthttp { }
}
source 0.0.0.0/24
translate-address enabled
translate-port enabled
vlans-disabled
vlans {
/Common/vlan_internal
}
}
-------> rejectVlans property in AS3 declaration (either list or empty list):
"rejectVlans": [
"/Common/vlan_internal"
],
or
"rejectVlans": [ ],
Created Jira CHARON-445 for PM tracking
Merge branch 'CHARON-445-allow-vlans' into 'develop' --- Closing
Environment
Summary
If virtual is enabled on a vlan: vlans { /Common/vlan_internal }, Charon does not convert the property allowVlans, instead it uses it's value as a key:
Steps To Reproduce
Steps to reproduce the behavior:
Expected Behavior
Use allowVlans key with vlan name as a value.