I try to add Traffic Rule for one of ports on DVS.
Body of my SOAP request looks like:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelopexmlns:ns0="urn:vim25"
xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<ns0:_thistype="VmwareDistributedVirtualSwitch">dvs-52</ns0:_this>
<ns0:operation>edit</ns0:operation>
<ns0:settingxsi:type="ns0:VMwareDVSPortSetting">
<ns0:inherited>0</ns0:inherited>
xsi:type="ns0:DvsTrafficFilterConfig">
<ns0:inherited>0</ns0:inherited>
<ns0:sequence>1</ns0:sequence>
xsi:type="ns0:DvsIpNetworkRuleQualifier">
<ns0:negate>false</ns0:negate>
<ns0:valuexsi:type="xsd:string">
<ns0:direction>incomingPackets
<ns0:configVersion>4</ns0:configVersion>
What I receive in answer is:
A general system error occurred: Not initialized
Can someone tell me what is wrong with my SOAP request. Maybe I have to configure something on DVS or Port Group, to make this SOAP request to work.
I'm using oslo.vmware to create and send API requests. DVS is set to be compatible with vSphere API 5.5.