Skip to content

[AVS-lite] Change login prompt - #59

Merged
sonikajindal merged 1 commit into
sonic-net:masterfrom
sreeiyer-1:login
Oct 13, 2026
Merged

sonikajindal merged 1 commit into
sonic-net:masterfrom
sreeiyer-1:login

Conversation

@sreeiyer-1

@sreeiyer-1 sreeiyer-1 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Change the login prompt of AVS-lite from admin@docker-alpine-dut to admin@sonic, as for AVS. Used a modified version of https://github.com/sonic-net/sonic-buildimage/blob/master/files/image_config/hostname/hostname-config.sh

Note that the new prompt will appear only for ssh sessions created after the '/usr/bin/hostname-config.sh' is executed. For the ssh sessions created very early, it will still be the old prompt.

Also changed the names of the nodes in the topology files. From docker-alpine-dut to alpine-dut and docker-alpine-ctl to alpine-ctl.

Disabled ipv6 on interfaces to avoid ipv6 packets from randomly increasing the counters

Start :

admin@sonic:~$ show int co
      IFACE    STATE    RX_OK    RX_BPS    RX_UTIL    RX_ERR    RX_DRP    RX_OVR    TX_OK    TX_BPS    TX_UTIL    TX_ERR    TX_DRP    TX_OVR
-----------  -------  -------  --------  ---------  --------  --------  --------  -------  --------  ---------  --------  --------  --------
  Ethernet0        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
  Ethernet4        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
  Ethernet8        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
 Ethernet12        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
 Ethernet16        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
 Ethernet20        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
 Ethernet24        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0

After arriba and forwarding tests :

root@sonic:/home/admin# show int counters 
      IFACE    STATE    RX_OK    RX_BPS    RX_UTIL    RX_ERR    RX_DRP    RX_OVR    TX_OK    TX_BPS    TX_UTIL    TX_ERR    TX_DRP    TX_OVR
-----------  -------  -------  --------  ---------  --------  --------  --------  -------  --------  ---------  --------  --------  --------
  Ethernet0        U    1,513       N/A        N/A         0         1         0    1,500       N/A        N/A         0         0         0
  Ethernet4        U    1,500       N/A        N/A         0         0         0    1,511       N/A        N/A         0         0         0
  Ethernet8        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
 Ethernet12        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
 Ethernet16        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
 Ethernet20        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
 Ethernet24        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
 Ethernet28        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
 Ethernet32        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
 Ethernet36        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
 Ethernet40        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
 Ethernet44        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0
 Ethernet48        U        0       N/A        N/A         0         0         0        0       N/A        N/A         0         0         0

@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@sreeiyer-1
sreeiyer-1 marked this pull request as ready for review October 13, 2026 08:01
Signed-off-by: Sree Iyer <sbiyer@google.com>
@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

Comment thread docker-sonic-alpinevs/start.sh Resolved
@sonikajindal
sonikajindal merged commit dc7bfb5 into sonic-net:master Oct 13, 2026
5 checks passed
@sreeiyer-1

Copy link
Copy Markdown
Contributor Author

Note that the new prompt will appear only for ssh sessions created after the '/usr/bin/hostname-config.sh' is executed. For the ssh sessions created very early, it will still be the old prompt.

A way around this is to set autostart to false in ssh.conf and start ssh from start.sh after hostname-config.sh is called. But this must be not done because any early failure in start.sh will prevent ssh from starting and make the switch inaccessible.

@sreeiyer-1
sreeiyer-1 deleted the login branch October 14, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants