You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VirtualServerOrder_Package class doesn't define VLANs #111
I faced the issue here when a private VLAN is not assigned correctly. Whenever I try to use any other VLAN, the server is created with a default VLAN which is auto-assigned when, for example, you don't specify a VLAN at all.
Playing around with changes suggested by @rubercuellar didn't help. I found a helpful solution in #92
Basically what I did for my workaround was to replace { "networkVlan" => {"id" => 123 } }
to { "networkVlanId" => 123 }
At the moment my final workaround, which works correctly, looks like that: add_vlans = lambda { |order_template| order_template['primaryBackendNetworkComponent'] = { "networkVlanId" => private_vlan_id } order_template } server_order.verify(&add_vlans) server_order.place_order!(&add_vlans)
Activity
renier commentedon Sep 17, 2016
Why is this a softlayer-ruby issue?
It makes sense that the network components are specified per device, after all.
ArtsiomMusin commentedon Nov 23, 2016
I faced the issue here when a private VLAN is not assigned correctly. Whenever I try to use any other VLAN, the server is created with a default VLAN which is auto-assigned when, for example, you don't specify a VLAN at all.
Playing around with changes suggested by @rubercuellar didn't help. I found a helpful solution in #92
Basically what I did for my workaround was to replace
{ "networkVlan" => {"id" => 123 } }to
{ "networkVlanId" => 123 }At the moment my final workaround, which works correctly, looks like that:
add_vlans = lambda { |order_template| order_template['primaryBackendNetworkComponent'] = { "networkVlanId" => private_vlan_id } order_template } server_order.verify(&add_vlans) server_order.place_order!(&add_vlans)@renier, still not a softlayer-ruby issue?
renier commentedon Nov 23, 2016
@ArtsiomMusin could should show the whole code you are trying?, from when you get an instance of server order. and use '```' do delimit the code block
ArtsiomMusin commentedon Nov 24, 2016
sorry I cannot show the whole code... confidential stuff you know.
But here is the main calls we use to build the order: