Skip to content

Commit

Permalink
Decouple cmd package from the clab application part1 (#1906)
Browse files Browse the repository at this point in the history
* init

* update

* update

* update

* fix exec

* fix nspath for bridge

* update

* fix tool create veth command

* fix ext-container

* fix CLAB_INTFS on linux node

* add host endpoints

* fix runtime detection for tools veth create

* limit internal functions visibility

* comments @hellt

* please deepsource

* added comments and getters

* run `make format`

* augment func comment

---------

Co-authored-by: Roman Dodin <dodin.roman@gmail.com>
  • Loading branch information
steiler and hellt committed Mar 15, 2024
1 parent 715c7ca commit 001e6a2
Show file tree
Hide file tree
Showing 43 changed files with 740 additions and 606 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ endif
ifndef suite
override suite = .
endif
robot-test: build-debug
robot-test: build-with-podman-debug
CLAB_BIN=$(BINARY) $$PWD/tests/rf-run.sh $(runtime) $$PWD/tests/$(suite)

MOCKDIR = ./mocks
Expand Down
4 changes: 2 additions & 2 deletions clab/authz_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ const (
authzKeysFPath = "~/.ssh/authorized_keys"
)

// CreateAuthzKeysFile creates the authorized_keys file in the lab directory
// createAuthzKeysFile creates the authorized_keys file in the lab directory
// using the public ssh keys retrieved from agent and local files.
func (c *CLab) CreateAuthzKeysFile() error {
func (c *CLab) createAuthzKeysFile() error {
b := new(bytes.Buffer)

for _, k := range c.SSHPubKeys {
Expand Down

0 comments on commit 001e6a2

Please sign in to comment.