<?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: GraphiQL doesn't give a correct list of VLANs ID in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62661#M7666</link>
    <description>&lt;P&gt;Hi Kurt,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As both queries’ sources are different, I guess we can say that as emc_cli queries the switch, it is the correct one ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I don’t know why XMC doesn’t have the correct list of VLANs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked with either ERS or VSP, with different firmware versions, the list I get with NBI is never correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something I can do to help ?&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 15:53:29 GMT</pubDate>
    <dc:creator>Nealo</dc:creator>
    <dc:date>2019-10-17T15:53:29Z</dc:date>
    <item>
      <title>GraphiQL doesn't give a correct list of VLANs ID</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62659#M7664</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’ve been trying to get a list of the VLANs on a VSP device.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The device is a VSP-8404 with 6.1.6.0 firmware, and the XMC version is&amp;nbsp;8.2.4.55.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know of two ways to get them.&lt;/P&gt;&lt;P&gt;The first one would be to send a CLI command with emc_cli, and get the output, then filter it to get a list.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class="language-python"&gt;cli_output = emc_cli.send("show vlan basic").getOutput().encode('ascii', 'ignore')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The second one is using emc_nbi and sending a query to get the VLANs&amp;nbsp;ID&lt;/P&gt;&lt;PRE&gt;&lt;CODE class="language-python"&gt;var_query = '''query{network{device(ip: "DeviceIP"){deviceData{vlans{vid}}}}}'''&lt;BR /&gt;var_result = emc_nbi.query(var_query)&lt;BR /&gt;vlans_id = var_result['network']['device']['deviceData']['vlans']&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But, I noticed that using NBI doesn’t give me the same result as using CLI.&lt;/P&gt;&lt;P&gt;With CLI, I get this list :&amp;nbsp; 1, 2, 49, 170, 180, 190, 4049, 4051, 4052&lt;/P&gt;&lt;P&gt;With NBI, I get this list : 1, 2, 49, 170, 180, 666, 4049&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The NBI is not correct, as I don’t get the 190, 4051 and 4052, and it adds the 666.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don’t understand why this difference is present.&amp;nbsp;Is there something I’m doing wrong ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for the help&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 14:59:47 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62659#M7664</guid>
      <dc:creator>Nealo</dc:creator>
      <dc:date>2019-10-17T14:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: GraphiQL doesn't give a correct list of VLANs ID</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62660#M7665</link>
      <description>&lt;P&gt;Hi Nealo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;those two methods retrieve data from two different sources:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;emc_cli: queries the switch&lt;/LI&gt;	&lt;LI&gt;emc_nbi: queries XMC&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The question now is: why does XMC not have the correct list of VLANs for that switch?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 15:35:59 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62660#M7665</guid>
      <dc:creator>Kurt_Semba</dc:creator>
      <dc:date>2019-10-17T15:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: GraphiQL doesn't give a correct list of VLANs ID</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62661#M7666</link>
      <description>&lt;P&gt;Hi Kurt,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As both queries’ sources are different, I guess we can say that as emc_cli queries the switch, it is the correct one ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I don’t know why XMC doesn’t have the correct list of VLANs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked with either ERS or VSP, with different firmware versions, the list I get with NBI is never correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something I can do to help ?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 15:53:29 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62661#M7666</guid>
      <dc:creator>Nealo</dc:creator>
      <dc:date>2019-10-17T15:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: GraphiQL doesn't give a correct list of VLANs ID</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62662#M7667</link>
      <description>&lt;P&gt;I cannot help with why XMC doesn’t retrieve the full, correct list of VLANs from those devices. Maybe someone else reading this can? But yeah, the emc_cli will give you the definitive answer on which VLANs actually exist on a switch since it is executing this CLI command on that switch.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 16:00:45 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62662#M7667</guid>
      <dc:creator>Kurt_Semba</dc:creator>
      <dc:date>2019-10-17T16:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: GraphiQL doesn't give a correct list of VLANs ID</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62663#M7668</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;I had the same problem with the NBI and, together with GTAC, found out that refreshing the device with a mutation and querying the right context within the NBI solves it - at least for EXOS and EOS. Try this (replace the IP with the management IP of the switch in question):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;mutation {&lt;BR /&gt;  network {&lt;BR /&gt;    rediscoverDevices(input: {devices: [{ipAddress: "10.0.0.1"}]}) {&lt;BR /&gt;      status&lt;BR /&gt;      message&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After firing this mutation, wait for 15 minutes (or check the Operations view)&amp;nbsp;and try the following GraphiQL query (again, replace the IP).&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;query {&lt;BR /&gt;  network {&lt;BR /&gt;    deviceVlans(ip: "10.0.0.1") {&lt;BR /&gt;      name&lt;BR /&gt;      vid&lt;BR /&gt;      primaryIp&lt;BR /&gt;      netmask&lt;BR /&gt;      ipForward&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="https://link.medium.com/m5yqUU15y0"&gt;https://link.medium.com/m5yqUU15y0&lt;/A&gt;&amp;nbsp;for an in-depth story on that topic.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 04:01:58 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62663#M7668</guid>
      <dc:creator>rbrt</dc:creator>
      <dc:date>2019-10-18T04:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: GraphiQL doesn't give a correct list of VLANs ID</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62664#M7669</link>
      <description>&lt;P&gt;Thanks a lot for providing a solution BCN-rbrt !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By any chance, do you know what a mutation does ? Does it change anything on the device, or something like that ?&lt;/P&gt;&lt;P&gt;Because, I’d like to be sure it doesn’t affect the network before implemanting a workflow that uses a mutation.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 14:19:10 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62664#M7669</guid>
      <dc:creator>Nealo</dc:creator>
      <dc:date>2019-10-18T14:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: GraphiQL doesn't give a correct list of VLANs ID</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62665#M7670</link>
      <description>&lt;P&gt;The mutation above just triggers a refresh device within XMC, so no changes are done to either the device or XMC.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 14:58:36 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62665#M7670</guid>
      <dc:creator>rbrt</dc:creator>
      <dc:date>2019-10-18T14:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: GraphiQL doesn't give a correct list of VLANs ID</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62666#M7671</link>
      <description>&lt;P&gt;I have a question about that request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output is different if I use&lt;/P&gt;&lt;P&gt;&lt;EM&gt;network {deviceVlans {vid&lt;/EM&gt; or&lt;/P&gt;&lt;P&gt;&lt;EM&gt;network {device {deviceData {vlans {vid&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shouldn’t both give the same result ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 18:16:59 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62666#M7671</guid>
      <dc:creator>Nealo</dc:creator>
      <dc:date>2019-10-18T18:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: GraphiQL doesn't give a correct list of VLANs ID</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62667#M7672</link>
      <description>&lt;P&gt;There is a lengthy, open GTAC case regarding API behaviour, which I condensed in the article I shared above. To summarize it for the context question: The API is still in development and deviceVlans is the right context to use for now. Out of the case, from Engineering:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;In a nutshell, the&amp;nbsp;query is for deviceData which internally is cached mainly for provisioning/ZTP and should not technically be used for reading device info&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As far as I know there is a CR to remove the deviceData/vlans context from the GraphQL API, targeted for XMC 8.4 or 8.5. So this issue will be “solved” soon.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 18:50:22 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62667#M7672</guid>
      <dc:creator>rbrt</dc:creator>
      <dc:date>2019-10-18T18:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: GraphiQL doesn't give a correct list of VLANs ID</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62668#M7673</link>
      <description>&lt;P&gt;Thanks a lot for all those information !&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 19:33:16 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/graphiql-doesn-t-give-a-correct-list-of-vlans-id/m-p/62668#M7673</guid>
      <dc:creator>Nealo</dc:creator>
      <dc:date>2019-10-18T19:33:16Z</dc:date>
    </item>
  </channel>
</rss>

