3.4. 논리적 네트워크 나열
이 Ruby 예제에서는 논리적 네트워크를 나열합니다.
# Get the reference to the root of the services tree:
system_service = connection.system_service
# Get the reference to the service that manages the
# collection of networks:
nws_service = system_service.networks_service
# Retrieve the list of clusters and for each one
# print its name:
nws = nws_service.list
nws.each do |nw|
puts nw.name
end
기본 관리 네트워크만 있는 환경에서 예제 출력:
ovirtmgmt
자세한 내용은 NetworksService:list 를 참조하십시오.