diff --git a/cmd/swctl/app/cmd_dependency.go b/cmd/swctl/app/cmd_dependency.go index 20a05b5..f361ef1 100644 --- a/cmd/swctl/app/cmd_dependency.go +++ b/cmd/swctl/app/cmd_dependency.go @@ -41,11 +41,11 @@ func exampleDependencyCmd(appName string) string { # Assign(up) or Unassign(down) interfaces to/from kernel $ ` + appName + ` dependency link up | down - # Print out startup config with dpdk interfaces - $ ` + appName + ` dependency get-startup [] + # Print out VPP startup config with dpdk interfaces + $ ` + appName + ` dependency get-vpp-startup [] - # Print out startup config with dpdk plugin disable - $ ` + appName + ` dependency get-startup + # Print out VPP startup config with dpdk plugin disable + $ ` + appName + ` dependency get-vpp-startup ` } @@ -87,7 +87,7 @@ func NewDependencyCmd(cli Cli) *cobra.Command { dependencyStatusCmd(cli), installHugePagesCmd(cli), linkSetUpDownCmd(cli), - startupConfCmd(cli)) + vppStartupConfCmd(cli)) return cmd } @@ -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 @@ -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 { @@ -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