diff options
Diffstat (limited to 'tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py')
-rw-r--r-- | tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py b/tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py index 13f68fb7..428240a1 100644 --- a/tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py +++ b/tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py @@ -23,8 +23,6 @@ import argparse import logging import os -# Load Spirent REST Library -from stcrestclient import stchttp logger = logging.getLogger(__name__) @@ -281,6 +279,9 @@ def main(): user_name = args.test_user_name try: + # Load Spirent REST Library + from stcrestclient import stchttp + stc = stchttp.StcHttp(args.lab_server_addr) session_id = stc.new_session(user_name, session_name) stc.join_session(session_id) |