Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent name for network interface speed. #30

Open
tscalf opened this issue Nov 2, 2015 · 0 comments
Open

Inconsistent name for network interface speed. #30

tscalf opened this issue Nov 2, 2015 · 0 comments

Comments

@tscalf
Copy link

tscalf commented Nov 2, 2015

The naming convention for network interface speed is inconsistent.

Command line argument: --network-interface-speed
JSON Content: "nic"

Example to create a Virtual Host with 1Gbps network ( examples extended from examples/server.md):

Command line: knife softlayer server create --image-id 23f7f05f-3657-4330-8772-329ed2e816bc --assign-global-ip 108.168.254.41 --ssh-keys 12345 23456 --hostname web --domain ibm.com --flavor m1.tiny --run-list 'recipe[redis],recipe[rbenv],recipe[apt]' -i /Users/user/.ssh/my_private_key_rsa --network-interface-speed 10000

JSON File:

{
  "hostname": "web",
  "domain": "ibm.com",
  "flavor": "m1.xlarge",
  "run-list": "recipe[redis],recipe[rbenv],recipe[apt]",
  "ssh-keys": "73148",
  "nic": "1000",
  "identity-file": "/Users/user/.ssh/my_softlayer_key_rsa",
  "image-id": "23f7f05f-3657-4330-8772-329ed2e816bc"
}

From lib/chef/knife/softlayer_server_create.rb

      option :nic,
        :long => '--network-interface-speed VALUE',
        :short => '-n VALUE',
        :description => 'The maximum speed of the public NIC available to the instance.',
        :default => 10

This either needs additional documentation for the parameter difference or pick a consistent name for both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant