code: func (vm VirtualMachine) NicsByType(nicType string) []Nic {
  	nics := make([]Nic, 0)
  	for _, nic := range vm.Nic {
  		if nic.Type == nicType {
  			// XXX The API forgets to specify it
  			n := nic
  			n.VirtualMachineID = vm.ID
  			nics = append(nics, n)
  		}
  	}
  	return nics
  }
docs: // NicsByType returns the corresponding interfaces base on the given type