Added NS subscription to html_out 60/9160/2
authorK Sai Kiran <saikiran.k@tataelxsi.co.in>
Thu, 25 Jun 2020 10:53:32 +0000 (16:23 +0530)
committerK Sai Kiran <saikiran.k@tataelxsi.co.in>
Thu, 25 Jun 2020 13:33:50 +0000 (19:03 +0530)
Added Ns subscription url to html_out.
Since in html there was no explict link for favicon.ico, browser by
default makes GET request to /favicon.ico NBI reponse was 404.
Added OSM favicon.ico and gave explicit link to static folder.

Change-Id: Id0088ca09bfc5000e487ab44ac678fab49919c37
Signed-off-by: K Sai Kiran <saikiran.k@tataelxsi.co.in>
osm_nbi/html_out.py
osm_nbi/html_public/favicon.ico [new file with mode: 0644]

index 82362ec..b344aff 100644 (file)
@@ -26,7 +26,8 @@ html_start = """
 <html>
 <head>
   <link href="/osm/static/style.css" rel="stylesheet">
-<title>Welcome to OSM</title>
+  <title>Welcome to OSM</title>
+  <link rel="shortcut icon" href="/osm/static/favicon.ico">
 </head>
 <body>
   <div id="osm_topmenu">
@@ -48,6 +49,7 @@ html_start = """
       <a href="/osm/admin/v1/sdns">SDNs </a>
       <a href="/osm/admin/v1/k8sclusters">K8s_clusters </a>
       <a href="/osm/admin/v1/k8srepos">K8s_repos </a>
+      <a href="/osm/nslcm/v1/subscriptions">NS_Subs </a>
       <a href="/osm/admin/v1/tokens?METHOD=DELETE">logout </a>
     </div>
   </div>
@@ -71,6 +73,7 @@ html_auth2 = """
 <head><META http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <link href="/osm/static/style.css" rel="stylesheet">
   <title>OSM Login</title>
+  <link rel="shortcut icon" href="/osm/static/favicon.ico">
 </head>
 <body>
   <div id="osm_header">
diff --git a/osm_nbi/html_public/favicon.ico b/osm_nbi/html_public/favicon.ico
new file mode 100644 (file)
index 0000000..c588094
Binary files /dev/null and b/osm_nbi/html_public/favicon.ico differ