Current Path : /usr/lib/python2.7/dist-packages/landscape/lib/ |
Current File : //usr/lib/python2.7/dist-packages/landscape/lib/vm_info.pyc |
ó ÍÿŠTc @ sb d Z d d l Z d d l m Z d d „ Z d d „ Z d „ Z d „ Z d „ Z d „ Z d S( sG Network introspection utilities using ioctl and the /proc filesystem. iÿÿÿÿN( t read_filet /c sn ‡ f d † } t ˆ ƒ r d St ˆ ƒ r/ d St j j ˆ d ƒ } t j j | ƒ r` t | ƒ St ˆ ƒ Sd S( sö Return a string with the virtualization type if it's known, an empty string otherwise. 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 t openvzt xens sys/class/dmi/id/sys_vendorN( t _is_vm_openvzt _is_vm_xenR R R t existst _get_vm_by_vendort _get_vm_legacy( R R t sys_vendor_path( ( R s9 /usr/lib/python2.7/dist-packages/landscape/lib/vm_info.pyt get_vm_info s s /run/container_typec C s&