Skip to content

Commit

Permalink
renamed vpp config getter command in swctl to prevent confusion with …
Browse files Browse the repository at this point in the history
…stonework startup config

Signed-off-by: Filip Gschwandtner <[email protected]>
  • Loading branch information
fgschwan committed Oct 19, 2023
1 parent 124ead9 commit f74e8b2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cmd/swctl/app/cmd_dependency.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ func exampleDependencyCmd(appName string) string {
<white># Assign(up) or Unassign(down) interfaces to/from kernel</>
$ <yellow>` + appName + ` dependency link <pci ...> up | down</>
<white># Print out startup config with dpdk interfaces</>
$ <yellow>` + appName + ` dependency get-startup [<interfacePci:StoneworkInterfaceName ...>]</>
<white># Print out VPP startup config with dpdk interfaces</>
$ <yellow>` + appName + ` dependency get-vpp-startup [<interfacePci:StoneworkInterfaceName ...>]</>
<white># Print out startup config with dpdk plugin disable</>
$ <yellow>` + appName + ` dependency get-startup</>
<white># Print out VPP startup config with dpdk plugin disable</>
$ <yellow>` + appName + ` dependency get-vpp-startup</>
`
}

Expand Down Expand Up @@ -87,7 +87,7 @@ func NewDependencyCmd(cli Cli) *cobra.Command {
dependencyStatusCmd(cli),
installHugePagesCmd(cli),
linkSetUpDownCmd(cli),
startupConfCmd(cli))
vppStartupConfCmd(cli))

return cmd
}
Expand Down Expand Up @@ -336,8 +336,8 @@ func linkSetUpDownCmd(cli Cli) *cobra.Command {
return cmd
}

func startupConfCmd(cli Cli) *cobra.Command {
const startupconfig = `unix {
func vppStartupConfCmd(cli Cli) *cobra.Command {
const vppStartupconfig = `unix {
cli-no-pager
cli-listen /run/vpp/cli.sock
log /tmp/vpp.log
Expand Down Expand Up @@ -375,8 +375,8 @@ punt {
}
`
cmd := &cobra.Command{
Use: "get-startup",
Short: "Print out startup config",
Use: "get-vpp-startup",
Short: "Print out VPP startup config",
Args: cobra.ArbitraryArgs,
RunE: func(cmd *cobra.Command, args []string) error {

Expand All @@ -397,7 +397,7 @@ punt {

}

t := template.Must(template.New("startupConf").Parse(startupconfig))
t := template.Must(template.New("vppStartupConf").Parse(vppStartupconfig))
err := t.Execute(cli.Out(), desiredInterfaces)
if err != nil {
return err
Expand Down

0 comments on commit f74e8b2

Please sign in to comment.