<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">&lt;<a href="mailto:tranceworldlogic@gmail.com" target="_blank">tranceworldlogic@gmail.com</a>&gt;</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=&quot;eth0&quot;), <br>                              <wbr>          network = types.Network(name=&quot;Hello&quot;),<br>                              <wbr>          ip_address_assignments = [ <br>                              <wbr>              types.IpAddressAssignment(<br>                              <wbr>                  assignment_method = types.BootProtocol.STATIC,<br>                              <wbr>                  ip = types.Ip(<br>                              <wbr>                      address=&quot;192.168.300.10&quot;,<br>                              <wbr>                      netmask=&quot;255.255.255.0&quot;,<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>&quot;ovirtsdk4.Error: Fault reason is &quot;Operation Failed&quot;. Fault 
detail is &quot;[Bad format of IPv4 address]&quot;. HTTP response code is 400.&quot;<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>