<?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: net-config-get-active in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/net-config-get-active/m-p/119492#M1945</link>
    <description>&lt;P&gt;What version of ONTAP are you running?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did a quick test and I get a VLAN section beside the interfaces section that lists the VLANs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;import sys
sys.path.append("netapp-manageability-sdk/lib/python/NetApp")
&lt;BR /&gt;from NaServer import *&lt;BR /&gt;
s = NaServer("10.78.7.100", 0 , 30)

s.set_server_type("FILER")
s.set_transport_type("HTTP")
s.set_port(80)
s.set_style("PASSWORD")
s.set_admin_user("ontapi","Netapp01")

result = s.invoke_elem(NaElement("net-config-get-active"))

print result.sprintf()&lt;/PRE&gt;&lt;P&gt;Result :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;results status="passed"&amp;gt;
	&amp;lt;net-config-info&amp;gt;
		&amp;lt;ifgrps&amp;gt;&amp;lt;/ifgrps&amp;gt;
		&amp;lt;vlans&amp;gt;
			&amp;lt;vlan-info&amp;gt;
				&amp;lt;interface-name&amp;gt;e0a-100&amp;lt;/interface-name&amp;gt;
				&amp;lt;parent-interface&amp;gt;e0a&amp;lt;/parent-interface&amp;gt;
				&amp;lt;gvrp-enabled&amp;gt;false&amp;lt;/gvrp-enabled&amp;gt;
				&amp;lt;vlanid&amp;gt;100&amp;lt;/vlanid&amp;gt;
			&amp;lt;/vlan-info&amp;gt;
		&amp;lt;/vlans&amp;gt;
		&amp;lt;interfaces&amp;gt;
[...]
		&amp;lt;/interfaces&amp;gt;
		&amp;lt;routes&amp;gt;
[...]
		&amp;lt;/routes&amp;gt;
		&amp;lt;config-status&amp;gt;&amp;lt;/config-status&amp;gt;
	&amp;lt;/net-config-info&amp;gt;
&amp;lt;/results&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 20 May 2016 13:44:26 GMT</pubDate>
    <dc:creator>yannb</dc:creator>
    <dc:date>2016-05-20T13:44:26Z</dc:date>
    <item>
      <title>net-config-get-active</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/net-config-get-active/m-p/119485#M1944</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to extract my &lt;STRONG&gt;active&lt;/STRONG&gt; network config from my FAS (7Dot) using NMSDK 5.4 with &lt;STRONG&gt;net-config-get-active&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;It works well except for vlan. vlanid stay at 0 for every vlan. Do i miss something ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 20:51:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/net-config-get-active/m-p/119485#M1944</guid>
      <dc:creator>Oc77</dc:creator>
      <dc:date>2025-06-04T20:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: net-config-get-active</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/net-config-get-active/m-p/119492#M1945</link>
      <description>&lt;P&gt;What version of ONTAP are you running?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did a quick test and I get a VLAN section beside the interfaces section that lists the VLANs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;import sys
sys.path.append("netapp-manageability-sdk/lib/python/NetApp")
&lt;BR /&gt;from NaServer import *&lt;BR /&gt;
s = NaServer("10.78.7.100", 0 , 30)

s.set_server_type("FILER")
s.set_transport_type("HTTP")
s.set_port(80)
s.set_style("PASSWORD")
s.set_admin_user("ontapi","Netapp01")

result = s.invoke_elem(NaElement("net-config-get-active"))

print result.sprintf()&lt;/PRE&gt;&lt;P&gt;Result :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;results status="passed"&amp;gt;
	&amp;lt;net-config-info&amp;gt;
		&amp;lt;ifgrps&amp;gt;&amp;lt;/ifgrps&amp;gt;
		&amp;lt;vlans&amp;gt;
			&amp;lt;vlan-info&amp;gt;
				&amp;lt;interface-name&amp;gt;e0a-100&amp;lt;/interface-name&amp;gt;
				&amp;lt;parent-interface&amp;gt;e0a&amp;lt;/parent-interface&amp;gt;
				&amp;lt;gvrp-enabled&amp;gt;false&amp;lt;/gvrp-enabled&amp;gt;
				&amp;lt;vlanid&amp;gt;100&amp;lt;/vlanid&amp;gt;
			&amp;lt;/vlan-info&amp;gt;
		&amp;lt;/vlans&amp;gt;
		&amp;lt;interfaces&amp;gt;
[...]
		&amp;lt;/interfaces&amp;gt;
		&amp;lt;routes&amp;gt;
[...]
		&amp;lt;/routes&amp;gt;
		&amp;lt;config-status&amp;gt;&amp;lt;/config-status&amp;gt;
	&amp;lt;/net-config-info&amp;gt;
&amp;lt;/results&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 May 2016 13:44:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/net-config-get-active/m-p/119492#M1945</guid>
      <dc:creator>yannb</dc:creator>
      <dc:date>2016-05-20T13:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: net-config-get-active</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/net-config-get-active/m-p/119494#M1946</link>
      <description>&lt;P&gt;I'using ontapi 21 witch Netapp 8.2.4P7 7-mode&lt;/P&gt;&lt;PRE&gt;import sys
sys.path.append("&amp;lt;path_to_nmsdk_root&amp;gt;/lib/python/NetApp")
from NaServer import *


s = NaServer("FAS82A", 1 , 21)
s.set_server_type("FILER")
s.set_transport_type("HTTP")
s.set_port(80)
s.set_style("LOGIN")
s.set_admin_user("superv", "&amp;lt;password&amp;gt;")


api = NaElement("system-get-ontapi-version")

xo = s.invoke_elem(api)
if (xo.results_status() == "failed") :
    print ("Error:\n")
    print (xo.sprintf())
    sys.exit (1)

print ("Received:\n")
print (xo.sprintf())


api1 = NaElement("system-get-version")

xo1 = s.invoke_elem(api1)
if (xo1.results_status() == "failed") :
    print ("Error:\n")
    print (xo1.sprintf())
    sys.exit (1)

print ("Received:\n")
print (xo1.sprintf())


api2 = NaElement("net-config-get-active")

xo2 = s.invoke_elem(api2)
if (xo2.results_status() == "failed") :
    print ("Error:\n")
    print (xo2.sprintf())
    sys.exit (1)

print ("Received:\n")
print (xo2.sprintf())&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;results status='passed'&amp;gt;
        &amp;lt;major-version&amp;gt;1&amp;lt;/major-version&amp;gt;
        &amp;lt;minor-version&amp;gt;21&amp;lt;/minor-version&amp;gt;
    &amp;lt;/results&amp;gt;
    &amp;lt;results status='passed'&amp;gt;
        &amp;lt;version&amp;gt;NetApp Release 8.2.4P2 7-Mode: Mon Feb  1 11:30:11 PST 2016&amp;lt;/version&amp;gt;
        &amp;lt;is-clustered&amp;gt;false&amp;lt;/is-clustered&amp;gt;
    &amp;lt;/results&amp;gt;
    &amp;lt;results status='passed'&amp;gt;
        &amp;lt;net-config-info&amp;gt;
            &amp;lt;ifgrps&amp;gt;
                &amp;lt;ifgrp-info&amp;gt;
                    &amp;lt;interface-name&amp;gt;iFAS82A-NAS&amp;lt;/interface-name&amp;gt;
                    &amp;lt;ifgrp-type&amp;gt;lacp&amp;lt;/ifgrp-type&amp;gt;
                    &amp;lt;ifgrp-policy&amp;gt;ip&amp;lt;/ifgrp-policy&amp;gt;
                    &amp;lt;links&amp;gt;
                        &amp;lt;link&amp;gt;e1a&amp;lt;/link&amp;gt;
                        &amp;lt;link&amp;gt;e1b&amp;lt;/link&amp;gt;
                    &amp;lt;/links&amp;gt;
                &amp;lt;/ifgrp-info&amp;gt;
            &amp;lt;/ifgrps&amp;gt;
            &amp;lt;vlans&amp;gt;
                &amp;lt;vlan-info&amp;gt;
                    &amp;lt;interface-name&amp;gt;iFAS82A-NAS-156&amp;lt;/interface-name&amp;gt;
                    &amp;lt;parent-interface&amp;gt;iFAS82A-NAS&amp;lt;/parent-interface&amp;gt;
                    &amp;lt;gvrp-enabled&amp;gt;false&amp;lt;/gvrp-enabled&amp;gt;
                    &amp;lt;vlanid&amp;gt;0&amp;lt;/vlanid&amp;gt;
                &amp;lt;/vlan-info&amp;gt;
            &amp;lt;/vlans&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 May 2016 13:59:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/net-config-get-active/m-p/119494#M1946</guid>
      <dc:creator>Oc77</dc:creator>
      <dc:date>2016-05-20T13:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: net-config-get-active</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/net-config-get-active/m-p/119509#M1949</link>
      <description>&lt;P&gt;I did some tests and was able to reproduce your problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like the API parses the interface name up to the first "-" character and determines the VLAN with what follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have a "-" character in your interface name it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here with "test-ifgrp" :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;results status="passed"&amp;gt;
	&amp;lt;net-config-info&amp;gt;
		&amp;lt;ifgrps&amp;gt;
			&amp;lt;ifgrp-info&amp;gt;
				&amp;lt;interface-name&amp;gt;test-ifgrp&amp;lt;/interface-name&amp;gt;
				&amp;lt;ifgrp-type&amp;gt;single&amp;lt;/ifgrp-type&amp;gt;
				&amp;lt;ifgrp-policy&amp;gt;single&amp;lt;/ifgrp-policy&amp;gt;
				&amp;lt;links&amp;gt;
					&amp;lt;link&amp;gt;e0c&amp;lt;/link&amp;gt;
					&amp;lt;link&amp;gt;e0d&amp;lt;/link&amp;gt;
				&amp;lt;/links&amp;gt;
			&amp;lt;/ifgrp-info&amp;gt;
		&amp;lt;/ifgrps&amp;gt;
		&amp;lt;vlans&amp;gt;
			&amp;lt;vlan-info&amp;gt;
				&amp;lt;interface-name&amp;gt;test-ifgrp-100&amp;lt;/interface-name&amp;gt;
				&amp;lt;parent-interface&amp;gt;test-ifgrp&amp;lt;/parent-interface&amp;gt;
				&amp;lt;gvrp-enabled&amp;gt;false&amp;lt;/gvrp-enabled&amp;gt;
				&amp;lt;vlanid&amp;gt;0&amp;lt;/vlanid&amp;gt;
			&amp;lt;/vlan-info&amp;gt;
		&amp;lt;/vlans&amp;gt;
		&amp;lt;interfaces&amp;gt;
[...]
			&amp;lt;interface-config-info&amp;gt;
				&amp;lt;interface-name&amp;gt;test-ifgrp&amp;lt;/interface-name&amp;gt;
				&amp;lt;ipspace-name&amp;gt;default-ipspace&amp;lt;/ipspace-name&amp;gt;
				&amp;lt;mac-address&amp;gt;02:0c:29:3f:83:81&amp;lt;/mac-address&amp;gt;
			&amp;lt;/interface-config-info&amp;gt;
			&amp;lt;interface-config-info&amp;gt;
				&amp;lt;interface-name&amp;gt;test-ifgrp-100&amp;lt;/interface-name&amp;gt;
				&amp;lt;ipspace-name&amp;gt;default-ipspace&amp;lt;/ipspace-name&amp;gt;
				&amp;lt;mac-address&amp;gt;02:0c:29:3f:83:81&amp;lt;/mac-address&amp;gt;
			&amp;lt;/interface-config-info&amp;gt;
		&amp;lt;/interfaces&amp;gt;
		&amp;lt;routes&amp;gt;

[...]		&amp;lt;/routes&amp;gt;
		&amp;lt;config-status&amp;gt;&amp;lt;/config-status&amp;gt;
	&amp;lt;/net-config-info&amp;gt;
&amp;lt;/results&amp;gt;&lt;/PRE&gt;&lt;P&gt;Here with "testifgrp"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;results status="passed"&amp;gt;
	&amp;lt;net-config-info&amp;gt;
		&amp;lt;ifgrps&amp;gt;
			&amp;lt;ifgrp-info&amp;gt;
				&amp;lt;interface-name&amp;gt;testifgrp&amp;lt;/interface-name&amp;gt;
				&amp;lt;ifgrp-type&amp;gt;single&amp;lt;/ifgrp-type&amp;gt;
				&amp;lt;ifgrp-policy&amp;gt;single&amp;lt;/ifgrp-policy&amp;gt;
				&amp;lt;links&amp;gt;
					&amp;lt;link&amp;gt;e0c&amp;lt;/link&amp;gt;
					&amp;lt;link&amp;gt;e0d&amp;lt;/link&amp;gt;
				&amp;lt;/links&amp;gt;
			&amp;lt;/ifgrp-info&amp;gt;
		&amp;lt;/ifgrps&amp;gt;
		&amp;lt;vlans&amp;gt;
			&amp;lt;vlan-info&amp;gt;
				&amp;lt;interface-name&amp;gt;testifgrp-100&amp;lt;/interface-name&amp;gt;
				&amp;lt;parent-interface&amp;gt;testifgrp&amp;lt;/parent-interface&amp;gt;
				&amp;lt;gvrp-enabled&amp;gt;false&amp;lt;/gvrp-enabled&amp;gt;
				&amp;lt;vlanid&amp;gt;100&amp;lt;/vlanid&amp;gt;
			&amp;lt;/vlan-info&amp;gt;
		&amp;lt;/vlans&amp;gt;
		&amp;lt;interfaces&amp;gt;
[...]
			&amp;lt;interface-config-info&amp;gt;
				&amp;lt;interface-name&amp;gt;e0c&amp;lt;/interface-name&amp;gt;
				&amp;lt;ipspace-name&amp;gt;default-ipspace&amp;lt;/ipspace-name&amp;gt;
				&amp;lt;mac-address&amp;gt;02:0c:29:3f:83:81&amp;lt;/mac-address&amp;gt;
				&amp;lt;mediatype&amp;gt;auto-1000t-fd-up&amp;lt;/mediatype&amp;gt;
				&amp;lt;flowcontrol&amp;gt;full&amp;lt;/flowcontrol&amp;gt;
			&amp;lt;/interface-config-info&amp;gt;
			&amp;lt;interface-config-info&amp;gt;
				&amp;lt;interface-name&amp;gt;e0d&amp;lt;/interface-name&amp;gt;
				&amp;lt;ipspace-name&amp;gt;default-ipspace&amp;lt;/ipspace-name&amp;gt;
				&amp;lt;mac-address&amp;gt;02:0c:29:3f:83:81&amp;lt;/mac-address&amp;gt;
				&amp;lt;mediatype&amp;gt;auto-1000t-fd-up&amp;lt;/mediatype&amp;gt;
				&amp;lt;flowcontrol&amp;gt;full&amp;lt;/flowcontrol&amp;gt;
			&amp;lt;/interface-config-info&amp;gt;
			&amp;lt;interface-config-info&amp;gt;
				&amp;lt;interface-name&amp;gt;testifgrp&amp;lt;/interface-name&amp;gt;
				&amp;lt;ipspace-name&amp;gt;default-ipspace&amp;lt;/ipspace-name&amp;gt;
				&amp;lt;mac-address&amp;gt;02:0c:29:3f:83:81&amp;lt;/mac-address&amp;gt;
			&amp;lt;/interface-config-info&amp;gt;
			&amp;lt;interface-config-info&amp;gt;
				&amp;lt;interface-name&amp;gt;testifgrp-100&amp;lt;/interface-name&amp;gt;
				&amp;lt;ipspace-name&amp;gt;default-ipspace&amp;lt;/ipspace-name&amp;gt;
				&amp;lt;mac-address&amp;gt;02:0c:29:3f:83:81&amp;lt;/mac-address&amp;gt;
			&amp;lt;/interface-config-info&amp;gt;
		&amp;lt;/interfaces&amp;gt;
		&amp;lt;routes&amp;gt;
[...]
		&amp;lt;/routes&amp;gt;
		&amp;lt;config-status&amp;gt;&amp;lt;/config-status&amp;gt;
	&amp;lt;/net-config-info&amp;gt;
&amp;lt;/results&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 May 2016 20:57:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/net-config-get-active/m-p/119509#M1949</guid>
      <dc:creator>yannb</dc:creator>
      <dc:date>2016-05-20T20:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: net-config-get-active</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/net-config-get-active/m-p/119529#M1951</link>
      <description>&lt;P&gt;Thanks you very much ! it's sad that i can't change ifgrp name in production.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no luck with this&amp;nbsp; net api. I found a bug in net-config-get-persistent which do not seem to support FC-IV card...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 06:26:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/net-config-get-active/m-p/119529#M1951</guid>
      <dc:creator>Oc77</dc:creator>
      <dc:date>2016-05-23T06:26:40Z</dc:date>
    </item>
  </channel>
</rss>

