<?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: MetaData variables in Python XMC scripts in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/metadata-variables-in-python-xmc-scripts/m-p/21429#M1276</link>
    <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
here is the working solution for my problem for the sake of completeness:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;#&lt;B&gt;@VariableFieldLabel&lt;/B&gt; (description = "ConfigName",&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;# type = String,&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;# scope = global&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;# )&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;set var ConfigName&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
#To use the variable&lt;BR /&gt;
&lt;I&gt;configfile = emc_vars["ConfigName"]&lt;BR /&gt;
&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Stephan&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Sat, 09 Jun 2018 04:05:00 GMT</pubDate>
    <dc:creator>StephanH</dc:creator>
    <dc:date>2018-06-09T04:05:00Z</dc:date>
    <item>
      <title>MetaData variables in Python XMC scripts</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/metadata-variables-in-python-xmc-scripts/m-p/21428#M1275</link>
      <description>Hello all,&lt;BR /&gt;
&lt;BR /&gt;
how is the correct value assignement for variables in the META section of an python script?&lt;BR /&gt;
&lt;BR /&gt;
TCL scripts show's like these:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;#&lt;B&gt;@ScriptDescription&lt;/B&gt; "Copy config while onboarding"&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;#&lt;B&gt;@SectionStart&lt;/B&gt;    (description = "Select configuration" )&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;#&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;#&lt;B&gt;@VariableFieldLabel&lt;/B&gt; (description = "ConfigName"&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;#      type        = String&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;#     scope       = device&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;#    )&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;&lt;B&gt;set var ConfigName  ""&lt;/B&gt;&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;#&lt;B&gt;@SectionEnd&lt;/B&gt;&lt;BR /&gt;
&lt;/I&gt;&lt;BR /&gt;
How do you have to replace &lt;I&gt;&lt;B&gt;set var ConfigName  ""&lt;/B&gt; in python?&lt;BR /&gt;
&lt;/I&gt;If I try ConfigName = "" the Device Settings section is empty if I run the script.&lt;BR /&gt;
&lt;BR /&gt;
So what is the correct syntax?&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Stephan&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Mar 2018 05:00:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/metadata-variables-in-python-xmc-scripts/m-p/21428#M1275</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2018-03-01T05:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: MetaData variables in Python XMC scripts</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/metadata-variables-in-python-xmc-scripts/m-p/21429#M1276</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
here is the working solution for my problem for the sake of completeness:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;#&lt;B&gt;@VariableFieldLabel&lt;/B&gt; (description = "ConfigName",&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;# type = String,&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;# scope = global&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;# )&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;set var ConfigName&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
#To use the variable&lt;BR /&gt;
&lt;I&gt;configfile = emc_vars["ConfigName"]&lt;BR /&gt;
&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Stephan&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Sat, 09 Jun 2018 04:05:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/metadata-variables-in-python-xmc-scripts/m-p/21429#M1276</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2018-06-09T04:05:00Z</dc:date>
    </item>
  </channel>
</rss>

