<div dir="ltr"><div><div>Sorry, I made a stupid mistake.<br></div>I given wrong IP itself ... it need to be 30 rather than 300.<br><br></div>Please ignore mail.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 24, 2017 at 10:12 AM, TranceWorldLogic . <span dir="ltr"><<a href="mailto:tranceworldlogic@gmail.com" target="_blank">tranceworldlogic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br></div></div><div>I am trying to setup network via python sdk as shown below:<br><br>myhost_service.setup_networks( modified_network_attachments = [ <br> <wbr> types.NetworkAttachment( <br> <wbr> host = myhost,<br> <wbr> host_nic = types.HostNic(name="eth0"), <br> <wbr> network = types.Network(name="Hello"),<br> <wbr> ip_address_assignments = [ <br> <wbr> types.IpAddressAssignment(<br> <wbr> assignment_method = types.BootProtocol.STATIC,<br> <wbr> ip = types.Ip(<br> <wbr> address="192.168.300.10",<br> <wbr> netmask="255.255.255.0",<br> <wbr> version=types.IpVersion.V4,<br> <wbr> ),<br> <wbr> )<br> <wbr> ],<br> <wbr> ),<br> ] )<br><br></div><div><br></div>But I am getting below error:<br></div>"ovirtsdk4.Error: Fault reason is "Operation Failed". Fault
detail is "[Bad format of IPv4 address]". HTTP response code is 400."<br><div><br></div><div>Please help me.<br></div><div>Ovirt release version = 4.0<br></div><div><br></div><div>Thanks,<br></div><div>~Rohit<br></div></div>
</blockquote></div><br></div>