if you reformat your code there to use the codeblock, it’ll be helpful. I can take a look a little later tonight to see what’s going on. In the meantime, if you’re just getting started with f5-common-python, I’d recommend you take a look at bigrest instead, as it is in active development.
'Protocol' --> Should be:
'ipProtocol'
'vlansEnabled': 'True' --> Should be:
'vlansEnabled': true
'icmpecho' --> Should be:
'icmpEcho'
BUT
this is not an attribute on the virtual server, it's on the virtual address (/mgmt/tm/ltm/virtual-address/<ip>), as is the 'arp' attribute
'state': 'disabled' --> Should be:
'enabled': true
OR
'disabled': true
'port' --> Is included in:
'destination'
BUT
that property is missing, it should include ip:port
Make sure profiles is configured appropriately, it is a sub collection
'tagMode' is not a property I can find on either virtual server or virtual address, what version are you on?