Skip to content

Commit

Permalink
Merge pull request #540 from axsh/feature-network-vif-index
Browse files Browse the repository at this point in the history
show list of network_vifs.
  • Loading branch information
Metallion committed Apr 13, 2015
2 parents 88d4f35 + 94b8881 commit eb7e19b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dcmgr/lib/dcmgr/endpoints/12.03/network_vifs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@

Dcmgr::Endpoints::V1203::CoreAPI.namespace '/network_vifs' do

# Show list of network_vifs
get do
ds = M::NetworkVif
if params[:account_id]
ds = ds.filter(:account_id=>params[:account_id])
end

collection_respond_with(ds) do |paging_ds|
R::NetworkVifCollection.new(paging_ds).generate
end
end

get '/:vif_id' do
# description "Retrieve details about a vif"
# params id, string, required
Expand Down

0 comments on commit eb7e19b

Please sign in to comment.