This is a multi-part message in MIME format.
--------------959D32FB75F08ADEEDA5B907
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
I am trying to create a non vm network using the following code,
but it still go a head and creates vm network. Can some one please help
me to resolve this? Or can you let me know in case i am missing some
parameter to add here?
def create_gluster_network(network_name):
networks_service = connection.system_service().networks_service()
network =
networks_service.add(types.Network(name=network_name,data_center=types.DataCenter(name='Default'),description='new
gluster network' ))
Thanks
kasturi
--------------959D32FB75F08ADEEDA5B907
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p> I am trying to create a non vm network using the following
code, but it still go a head and creates vm network. Can some one
please help me to resolve this? Or can you let me know in case i
am missing some parameter to add here?</p>
<p>
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
</p>
<pre style="background-color:#ffffff;color:#000000;font-family:'DejaVu
Sans Mono';font-size:13.5pt;"><span
style="color:#000080;font-weight:bold;">def
</span>create_gluster_network(network_name):
networks_service = connection.system_service().networks_service()
<span style="color:#808080;">network </span>=
networks_service.add(types.<span
style="background-color:#e4e4ff;">Network</span>(<span
style="color:#660099;">name</span>=network_name, <span
style="color:#660099;">data_center</span>=types.DataCenter(<span
style="color:#660099;">name</span>=<span
style="color:#008000;font-weight:bold;">'Default'</span>),
<span style="color:#660099;">description</span>=<span
style="color:#008000;font-weight:bold;">'new gluster network'
</span><span style="color:#008000;font-weight:bold;">
</span>))
Thanks
kasturi
</pre>
</body>
</html>
--------------959D32FB75F08ADEEDA5B907--