<commit_before># (c) Copyright 2016 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.

my_client = {
  url: ENV['ONEVIEWSDK_URL'],
  user: ENV['ONEVIEWSDK_USER'],
  password: ENV['<PASSWORD>'],
  api_version: 500
}

# It will not do anything if no action is selected
oneview_interconnect 'Encl1, interconnect 1' do
  client my_client
end

oneview_interconnect 'Encl1, interconnect 1' do
  client my_client
  action :reset_port_protection
end

oneview_interconnect 'Encl1, interconnect 1' do
  client my_client
  uid_light_state 'On'
  action :set_uid_light
end

oneview_interconnect 'Encl1, interconnect 1' do
  client my_client
  power_state 'On'
  action :set_power_state
end

oneview_interconnect 'Encl1, interconnect 1' do
  client my_client
  port_options(
    name: 'X4',
    portName: 'X4',
    enabled: true
  )
  action :update_port
end

oneview_interconnect 'Encl1, interconnect 1' do
  client my_client
  action :reset
end

# Only for api500
oneview_interconnect 'Encl1, interconnect 1' do
  client my_client
  api_version 500
  action :reapply_configuration
end<commit_msg>Update: Interconnect Endpoints3<commit_after># (c) Copyright 2016 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.

my_client = {
  url: ENV['ONEVIEWSDK_URL'],
  user: ENV['ONEVIEWSDK_USER'],
  password: ENV['<PASSWORD>'],
  api_version: 500
}

# It will not do anything if no action is selected
oneview_interconnect 'Encl1, interconnect 1' do
  client my_client
end

oneview_interconnect 'Encl1, interconnect 1' do
  client my_client
  action :reset_port_protection
end

oneview_interconnect 'Encl1, interconnect 1' do
  client my_client
  uid_light_state 'On'
  action :set_uid_light
end

oneview_interconnect 'Encl1, interconnect 1' do
  client my_client
  power_state 'On'
  action :set_power_state
end

oneview_interconnect 'Encl1, interconnect 1' do
  client my_client
  port_options(
    name: 'X4',
    portName: 'X4',
    enabled: true
  )
  action :update_port
end

oneview_interconnect 'Encl1, interconnect 1' do
  client my_client
  action :reset
end

# for Api grater than Api500
oneview_interconnect 'Encl1, interconnect 1' do
  client my_client
  api_version 500
  action :reapply_configuration
end
{'fraction_non_alphanumeric': 0.06605222734254992, 'fraction_numerical': 0.020583717357910907, 'mean_word_length': 4.76283185840708, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1517511', 'n_tokens_mistral': 1046, 'n_tokens_neox': 989, 'n_words': 383}