| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/landscape/lib/ |
Upload File : |
ó
}9Rc @ s2 d Z d d l Z d d l m Z d d Z d S( sG
Network introspection utilities using ioctl and the /proc filesystem.
i˙˙˙˙N( t read_filet /c
s f d } d d g } t | | } | d } t j j | rL d St t j j | re d S| d } t j j | r t j | r d St } | d } t j j | rt | } x? | j d D]+ } | j
d
rÖ d | k rÖ t } PqÖ qÖ Wn | sd S| d
} t j j | s4d St | } d | k rPd Sd | k r`d Sd | k sxd | k r|d Sd S( sŇ
This is a utility that returns the virtualization type
It loops through some possible configurations and return a string with
the name of the technology being used or None if there's no match
c s t j j | S( N( t ost patht join( R ( t root_path( s9 /usr/lib/python2.7/dist-packages/landscape/lib/vm_info.pyt join_root_path s s proc/sys/xens proc/xens proc/vzt openvzt xens sys/bus/xen/devicess proc/cpuinfos
t flagst
hypervisort s sys/class/dmi/id/sys_vendors VMware, Inc.t vmwares Microsoft Corporationt hypervt Bochst OpenStackt kvm( t mapR R t existst filtert isdirt listdirt FalseR t splitt
startswitht True(
R R t xen_pathst vz_patht sys_xen_patht has_hypervisor_flagt
cpu_info_patht contentt linet sys_vendor_path( ( R s9 /usr/lib/python2.7/dist-packages/landscape/lib/vm_info.pyt get_vm_info s@ !( t __doc__R t landscape.lib.fsR R"