Display sc node config as tree view

display shared attribute in sc specs and node details page

Change-Id: I57b1cec1f697fb6c5295411d350d4d0f5225d71a
Closes-Bug: 1466912
This commit is contained in:
ank
2015-06-22 17:35:08 +05:30
parent 2839ed28bb
commit 4c0f73226b
16 changed files with 1166 additions and 16 deletions

View File

@@ -130,19 +130,19 @@ def update_policyaction_attributes(request, paction):
def update_sc_spec_attributes(request, scspec):
img_path = "/static/dashboard/images/"
img_path = "/static/dashboard/img/"
provider = "default"
nodes = scspec.nodes
nodes = [client.get_servicechain_node(request, item) for item in nodes]
t = "<table class='table table-condensed' \
style='margin-bottom:0px'><tr><td>"
val = [t + "<span class='glyphicon glyphicon-remove-circle'></span></td>"]
ds_path = "/opt/stack/horizon/static/dashboard/images/"
ds_path = "/opt/stack/horizon/static/dashboard/img/"
if os.path.exists(ds_path):
local_img_path = ds_path
else:
local_img_path = "/usr/share/openstack-dashboard/openstack_dashboard/" \
+ "static/dashboard/images/"
+ "static/dashboard/img/"
if os.path.exists(local_img_path):
providers = os.listdir(local_img_path)
for p in providers: