Closed frippe75 closed 7 years ago
This has been verified and is a possible improvement for the Ruby SDK.
Currently, we do not allow for using the compact syntax with Q and integer type ports. So, it will only work for 'X' and 'D' type ports at this moment.
While this improvement is not integrated into the SDK, using the full declaration of uplink sets should be the default:
oneview_logical_interconnect_group{'Puppet Ethernet LIG Synergy':
ensure => 'present',
data => {
name => 'Puppet Ethernet LIG Synergy',
redundancyType => 'Redundant',
interconnectBaySet => 3,
interconnects =>
[
{
bay => 3,
type => 'Virtual Connect SE 40Gb F8 Module for Synergy'
},
{
bay => 6,
type => 'Virtual Connect SE 40Gb F8 Module for Synergy'
},
],
uplinkSets => [
{
networkUris => [ 'TUNNEL_ETH_UP_01' ],
mode => 'Auto',
lacpTimer => 'Short',
logicalPortConfigInfos => [
{
desiredSpeed => 'Auto',
logicalLocation => {
locationEntries => [
{
type => 'Bay',
relativeValue => 3
},
{
type => 'Port',
relativeValue => 62
},
{
type => 'Enclosure',
relativeValue => 1
}
]
}
},
{
desiredSpeed => 'Auto',
logicalLocation => {
locationEntries => [
{
type => 'Bay',
relativeValue => 6
},
{
type => 'Port',
relativeValue => 67
},
{
type => 'Enclosure',
relativeValue => 1
}
]
}
}
],
networkType => 'Ethernet',
ethernetNetworkType => 'Tunnel',
name => 'test_upset'
}
]
}
}
In this case, relativeValue 62 refers to Q1:1 and 67 to Q2:1 ports respectively.
Scenario/Intent
Trying to create a LIG with some uplinkset defined in a single "call" but fail with: Error: /Stage[main]/Main/Oneview_logical_interconnect_group[Puppet LIG Synergy-with-uplinks]: Could not evaluate: Port not supported: 2 type not found
Tried all possible combinations of portnames. But I guess this is not implemented for synergy frames.
Environment Details
Steps to Reproduce
The test_lig.pp file. You need to create the "Tunnel Trunk-A" network prior to creating the LIG.
Expected Result
[What do you expect to happen after taking the steps above?]
Actual Result
[What actually happens after the steps above? Include error output or a link to a gist.]