Skip to content

Commit d235f1c

Browse files
committed
use admin home for bin
1 parent 241a710 commit d235f1c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

frontpanel.clab.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ topology:
1212
# as the files in the plugins directory will have be owned by srlinux user and group
1313
- plugin/show-frontpanel.py:/tmp/show-frontpanel.py
1414
# mount frontpanel binary
15-
- build/frontpanel:/usr/local/bin/frontpanel
15+
- build/frontpanel:/home/admin/frontpanel
1616
exec:
1717
- ln -s /tmp/show-frontpanel.py /etc/opt/srlinux/cli/plugins/show-frontpanel.py
1818

plugin/show-frontpanel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
from srlinux.mgmt.cli.cli_state import CliState
1414
from srlinux.syntax import Syntax
1515

16+
frontpanel_bin_path = "/home/admin/frontpanel"
17+
1618

1719
class Plugin(CliPlugin):
1820
def _image_protocol(self):
@@ -113,7 +115,7 @@ def _print(
113115

114116
protocol = self._image_protocol()
115117
cmd = [
116-
"/usr/local/bin/frontpanel",
118+
frontpanel_bin_path,
117119
"-image",
118120
chassis_type,
119121
"-image-protocol",

0 commit comments

Comments
 (0)