examples/network_set.pp
################################################################################
# (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
################################################################################
# NOTE: This example needs two Ethernet Networks named 'Ethernet 1' and 'Ethernet 2'
# Optional filters for specific network sets
oneview_network_set{'Network Set Get Without Ethernet':
ensure => 'get_without_ethernet',
}
oneview_network_set{'Network Set Create':
ensure => 'present',
data =>
{
name => 'Test Network Set',
networkUris => ['Ethernet 1', 'Ethernet 2']
}
}
# Optional filters
oneview_network_set{'Network Set Get All':
ensure => 'found',
require => Oneview_network_set['Network Set Create'],
}
oneview_network_set{'Network Set Edit':
ensure => 'present',
require => Oneview_network_set['Network Set Get All'],
data =>
{
name => 'Test Network Set',
nativeNetworkUri => 'Ethernet 2'
}
}
oneview_network_set{'Network Set Delete':
ensure => 'absent',
require => Oneview_network_set['Network Set Edit'],
data =>
{
name => 'Test Network Set'
}
}