#!/usr/bin/python
-__author__ = "Gary Wu"
-__email__ = "gary.wu1@huawei.com"
-
-
import requests
import argparse
import time
from Queue import Queue
+
+__author__ = "Gary Wu"
+__email__ = "gary.wu1@huawei.com"
+
+
GET_HEADERS = {'Accept': 'application/json'}
INVENTORY_URL = 'http://%s:%d/restconf/%s/opendaylight-inventory:nodes'
self.secs = self.end - self.start
self.msecs = self.secs * 1000 # millisecs
if self.verbose:
- print ("elapsed time: %f ms" % self.msecs)
+ print("elapsed time: %f ms" % self.msecs)
def read(hosts, port, auth, datastore, print_lock, cycles, results_queue):