Since there are other profiles assigned, you can take a multi-step approach. List the virtual server first, note the existing profiles ("tcp" should be one of them), then do a replace-all-with specifying the full list, but with "tcp-legacy" instead of "tcp." For example:
(tmos)# list /ltm virtual http_vs
ltm virtual http_vs {
creation-time 2020-03-13:14:59:59
destination 10.10.4.100:http
ip-protocol tcp
last-modified-time 2021-04-12:14:54:50
mask 255.255.255.255
pool http_pool
profiles {
http { }
oneconnect { }
tcp { }
}
source 0.0.0.0/0
translate-address enabled
translate-port enabled
vs-index 2
}
(tmos)# modify /ltm virtual http_vs profiles replace-all-with { http oneconnect tcp-legacy }
(tmos)# list /ltm virtual http_vs
ltm virtual http_vs {
creation-time 2020-03-13:14:59:59
destination 10.10.4.100:http
ip-protocol tcp
last-modified-time 2021-04-12:14:54:50
mask 255.255.255.255
pool http_pool
profiles {
http { }
oneconnect { }
tcp-legacy { }
}
source 0.0.0.0/0
translate-address enabled
translate-port enabled
vs-index 2
}