code: def _get_dvs_capability(dvs_name, dvs_capability):
      '''
      Returns the dict representation of the DVS product_info
  
      dvs_name
          The name of the DVS
  
      dvs_capability
          The DVS capability
      '''
      log.trace('Building the dict of the DVS \'%s\' capability', dvs_name)
      return {'operation_supported': dvs_capability.dvsOperationSupported,
              'portgroup_operation_supported':
              dvs_capability.dvPortGroupOperationSupported,
              'port_operation_supported': dvs_capability.dvPortOperationSupportedf _get_dvs_capability(dvs_name, dvs_capability):
      '''
      Returns the dict representation of the DVS product_info
  
      dvs_name
          The name of the DVS
  
      dvs_capability
          The DVS capability
      '''
      log.trace('Building the dict of the DVS \'%s\' capability', dvs_name)
      return {'operation_supported': dvs_capability.dvsOperationSupported,
              'portgroup_operation_supported':
              dvs_capability.dvPortGroupOperationSupported,
              'port_operation_supported': dvs_capability.dvPortOperationSupported}
docs: Returns the dict representation of the DVS product_info
  
      dvs_name
          The name of the DVS
  
      dvs_capability
          The DVS capability