cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
690
Views
1
Helpful
2
Replies

webui redirection

ysolan
Level 1
Level 1

Hi Team,

I would like to use the Webui redirection option available via ncs.conf

I would like to redirect to the ncs:service web page after a successful login

I added this command and made a reload of NSO but it didn't work for my browser (chrome/I.E)

    <webui-index-url>

  /index.html#/model/ncs%3Aservices

  </webui-index-url>

What do you think is the correct syntax ?

Thanks and Regards,

Yannick

2 Replies 2

alam.bilal
Cisco Employee
Cisco Employee

Hi Yannick,

Can you please compose and try another test-file, say index-test.html and see if the "webui-index-url" works with that.

Then we can raise this with engineering as to the correct way of encoding special characters and whether this type of URL formatting is supported.

dvlassop
Cisco Employee
Cisco Employee

Hi Yannick,

the documentation suggests the following configuration for redirections (see page 458 of the nso_man-4.4.pdf guide that covers all configuration options for the ncs.conf file):

<webui>

    <enabled>true</enabled>

    <transport>

      <tcp>

        <enabled>true</enabled>

        <ip>0.0.0.0</ip>

        <port>8080</port>

        <redirect>https://www.cisco.com</redirect>

      </tcp>

    </transport>

</webui>

This however will redirect all users without ever reaching NSO login.

The option that will probably cover your needs is a combination of leveraging the docroot folder (by default under var/ncs/webui/dist/ncs) and modifying the login.html and/or the index.html to address your needs, i.e. once logged in redirect to another URL)

Best to copy the folder to another location, modify ncs.conf to use that location as the docroot and change the login / index html files.

<webui>

  <enabled>true</enabled>

  <docroot>/new/docroot/path</docroot>

  ..

  ..

</webui>

Regards,

Dimitris