Updated code to match new rules
[integration/test.git] / tools / netconf_tools / getter.py
index 8289209911939d7aa556bff425bb086198e18dc5..cac22dd203f9cc01d5b71864ca43111ddbcd8378 100644 (file)
@@ -23,12 +23,6 @@ overhead of context switching remains).
 # 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
@@ -36,6 +30,12 @@ import time
 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")
@@ -129,11 +129,9 @@ def run_thread(thread_target, *thread_args):
 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}