On Fri, 01 Mar 2019 08:30:18 -0000 "Akshita Jain" <akshitajain....@gmail.com> wrote:
> I want to use ovn-nbctl ls-add command on ovirt engine to create the switch > but I'm not able to make communication between vms in switch created by above > command. > Please tell me the exact procedure or any command which can be used to create > the switches by commands . You can create the logical network in oVirt and the underlying OVN switch in a single step via the oVirt's REST-API, please find an example in https://gist.github.com/dominikholler/be7286931c0ea26b14965a5f91783cd4 If you like to have more granularity in creating the OVN logical switch, you can create the OVN logical switch via OpenStack Networking API on the ovirt-provider-ovn and import the OpenStack network into oVirt as logical network by oVirt REST-API or automatic synchronization. If you prefer to use ansible, please find an example in https://github.com/oVirt/ovirt-system-tests/blob/master/network-suite-master/ansible/roles/create-ovn-entities/tasks/main.yml The python module 'openstack' can be used like this: import openstack cloud = openstack.connect(cloud='ovirt') cloud.create_network('ovn_net') The configuration if the python module 'openstack' is documented in https://docs.openstack.org/python-openstackclient/pike/configuration/index.html e.g. a file clouds.yaml in the working directory with content similar to: clouds: ovirt: auth: auth_url: https://0.0.0.0:35357/v2.0 password: '123456' username: admin@internal verify: false should do the trick. Alternatively the configuration could be provided by the environment variables: OS_USERNAME, OS_PASSWORD, OS_AUTH_URL and OS_CACERT. The same configuration works for the OpenStack command line: openstack network create ovn_net Does this help you to avoid the usage of "ovn-nbctl ls-add"? > _______________________________________________ > Users mailing list -- users@ovirt.org > To unsubscribe send an email to users-le...@ovirt.org > Privacy Statement: https://www.ovirt.org/site/privacy-policy/ > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > List Archives: > https://lists.ovirt.org/archives/list/users@ovirt.org/message/JYQUQICDPIU2YD57OKTLBXIRNWQVT2JH/ _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/R5TWCIVFKTYKQR4AGYKDN7IDJCLFMWB3/