diff --git a/broadview_lib/tools/bv-bstctl.py b/broadview_lib/tools/bv-bstctl.py index d2e376d..3d9ea93 100644 --- a/broadview_lib/tools/bv-bstctl.py +++ b/broadview_lib/tools/bv-bstctl.py @@ -1,3 +1,5 @@ +#!/usr/bin/python + # (C) Copyright Broadcom Corporation 2016 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,6 +18,7 @@ from broadview_lib.config.bst import * from broadview_lib.config.broadviewconfig import BroadViewBSTSwitches import sys import unittest +import json class BSTConfigCommand(): def __init__(self): @@ -421,7 +424,7 @@ class BSTConfigCommand(): x.setASIC(asic) status = x.send() if status == 200: - ret = x.getJSON() + ret = json.dumps(x.getJSON()) print ret else: print "failure: %d" % (status) @@ -470,7 +473,7 @@ class BSTConfigCommand(): status, rep = x.send() if status == 200: - ret = x.getJSON() + ret = json.dumps(x.getJSON()) print ret else: print "failure: %d" % (status) @@ -516,7 +519,7 @@ class BSTConfigCommand(): status, rep = x.send() if status == 200: - ret = x.getJSON() + ret = json.dumps(x.getJSON()) print ret else: print "failure: %d" % (status)