Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, I found a bug when creating a relation from cli.
`onos-cli-b987f85dd-snhxn:~$ onos topo create relation entity1 entity2
panic: runtime error: index out of range [2] with length 2
goroutine 1 [running]:
github.com/onosproject/onos-cli/pkg/topo.runCreateRelationCommand(0xc0004a4c00?, {0xc000470dc0, 0x2, 0x2?})
/build/pkg/topo/create.go:60 +0x99
github.com/spf13/cobra.(*Command).execute(0xc0004a4c00, {0xc000470d80, 0x2, 0x2})
/build/vendor/github.com/spf13/cobra/command.go:940 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0xc00049c000)
/build/vendor/github.com/spf13/cobra/command.go:1068 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
/build/vendor/github.com/spf13/cobra/command.go:992
github.com/onosproject/onos-cli/pkg/cli.Execute()
/build/pkg/cli/root.go:38 +0x1e
main.main()
/build/cmd/onos/main.go:12 +0x17`
And this pull request is a fix. Thanks.