<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem adding interfaces to vif using new-nanetvif in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Problem-adding-interfaces-to-vif-using-new-nanetvif/m-p/45886#M2168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Barry - Can you convert the .xls to a .csv file and try importing the csv using "Import-csv" cmdlet and then try passsing the imported objects to the for each loop ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 May 2014 02:34:54 GMT</pubDate>
    <dc:creator>vinith</dc:creator>
    <dc:date>2014-05-01T02:34:54Z</dc:date>
    <item>
      <title>Problem adding interfaces to vif using new-nanetvif</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Problem-adding-interfaces-to-vif-using-new-nanetvif/m-p/45882#M2167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a new vif with the new-nanetvif command.&amp;nbsp; I have an execl spreadsheet like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interface Name(A)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interfaces(B)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type(C)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LB(D)&lt;/P&gt;&lt;P&gt;ifgrp-nas&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e0a e0b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lacp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ip&lt;/P&gt;&lt;P&gt;ifgrp-iscsi&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e1a e1b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lacp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ip &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am reading each item on a row into a variable and running the new-nanetvif command.&amp;nbsp; The problem I have is that the interfaces (e0a, e0b) aren't not being configued on the vif.&amp;nbsp; It seems that the command is wanting a string array; but when I provide an array it throws an error.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Get ifgrp worksheet and process&lt;/P&gt;&lt;P&gt;$ifgrp=$ExcelWorkBook.sheets.item(6)&lt;/P&gt;&lt;P&gt;$intRowMax=($ifgrp.UsedRange.Rows).count&lt;/P&gt;&lt;P&gt;&amp;nbsp; for($intRow=2;$intRow -le $IntRowMax;$IntRow++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; new-nanetvif&amp;nbsp; $ifgrp.cells.item(2,"A").value2&amp;nbsp; $ifgrp.cells.item(2,"B").value2&amp;nbsp; $ifgrp.cells.item(2,"C").value2&amp;nbsp; $ifgrp.cells.item(2,"D").value2&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:37:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Problem-adding-interfaces-to-vif-using-new-nanetvif/m-p/45882#M2167</guid>
      <dc:creator>BWINSTANLEY74</dc:creator>
      <dc:date>2025-06-05T05:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding interfaces to vif using new-nanetvif</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Problem-adding-interfaces-to-vif-using-new-nanetvif/m-p/45886#M2168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Barry - Can you convert the .xls to a .csv file and try importing the csv using "Import-csv" cmdlet and then try passsing the imported objects to the for each loop ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 02:34:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Problem-adding-interfaces-to-vif-using-new-nanetvif/m-p/45886#M2168</guid>
      <dc:creator>vinith</dc:creator>
      <dc:date>2014-05-01T02:34:54Z</dc:date>
    </item>
  </channel>
</rss>

