 angular = require 'angular'
 cloneDeep = require 'lodash.clonedeep'
+filter = require 'lodash.filter'
 forEach = require 'lodash.foreach'
 
 #=====================================================================

        result

    pool = default_SR = null
    do (
      networks = xoApi.getIndex('networksByPool')
    ) ->
      Object.defineProperties($scope, {
        networks: {
          get: () => pool && networks[pool.id]
        }
      })

    srsByContainer = xoApi.getIndex('srsByContainer')
    vmTemplatesByContainer = xoApi.getIndex('vmTemplatesByContainer')
    $scope.$watch(
      -> get $stateParams.container
      (container) ->

          pool = container

        default_SR = get pool.default_SR
        default_SR = if default_SR then default_SR.id else ''
    )

    $scope.availableMethods = {}
