Hi,

I'm able to delete the logical network but this logical network after
deletion shows as unmanaged network in "Setup Host Networks" against the
hostnic.

I tried with this code to detach the logical network.

*Code 1:*
HostNIC nic = api.getHosts().get("rhevhost").getHostNics().get("eth1");
Action action = new Action();
action.setNetwork(api.getNetworks().get(nw_name));
action.setDetach(true);
action.setCheckConnectivity(false);
nic.detach(action);

*Returns*:
code  : 409
reason: Conflict
detail: Network Interface is not attached to Logical Network.

*Code 2:*
HostNIC nic = api.getHosts().get("rhevhost").getHostNics().get("eth1.1345");
Action action = new Action();
action.setNetwork(api.getNetworks().get(nw_name));
action.setDetach(true);
action.setCheckConnectivity(false);
nic.detach(action);

*Returns*:
code  : 409
reason: Conflict
detail: Cannot edit Network while Host is Active, change the Host to
Maintenance mode and try again.


-- 
Thanks & Regards
Tejesh
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to