# terms of the Eclipse Public License v1.0 which accompanies this distribution,
# and is available at http://www.eclipse.org/legal/epl-v10.html
-__author__ = "Vratko Polak"
-__copyright__ = "Copyright(c) 2015, Cisco Systems, Inc."
-__license__ = "Eclipse Public License v1.0"
-__email__ = "vrpolak@cisco.com"
-
-
import argparse
import collections # For deque and Counter.
import threading
import AuthStandalone
+__author__ = "Vratko Polak"
+__copyright__ = "Copyright(c) 2015, Cisco Systems, Inc."
+__license__ = "Eclipse Public License v1.0"
+__email__ = "vrpolak@cisco.com"
+
+
def str2bool(text):
"""Utility converter, based on http://stackoverflow.com/a/19227287"""
return text.lower() in ("yes", "true", "y", "t", "1")
args = parse_arguments()
# Construct the work for the workers.
-url_start = (
- 'config/'
- "network-topology:network-topology/topology/topology-netconf/node/"
- + args.name + "-"
-)
+url_start = 'config/network-topology:network-topology/'
+url_start += "topology/topology-netconf/node/"
+url_start += args.name + "-"
url_end = "/yang-ext:mount"
headers = {'Content-Type': 'application/xml', "Accept": "application/xml"}
kwargs = {"headers": headers}